Changeset 41341 for trunk/Ohana/src/kapa2/src/Image.c
- Timestamp:
- Apr 16, 2020, 2:04:27 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa2/src/Image.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/src/Image.c
r41340 r41341 148 148 void DrawImage (KapaImageWidget *image) { 149 149 150 Graphic *graphic; 151 152 if (image == NULL) return; 153 154 graphic = GetGraphic (); 155 156 if (image[0].picture.pix) { 157 XPutImage (graphic[0].display, graphic[0].window, graphic[0].gc, 158 image[0].picture.pix, 0, 0, 159 image[0].picture.x + 1, image[0].picture.y + 1, 160 image[0].picture.dx, image[0].picture.dy); 161 } 162 } 163 164 // add the zoom, pan, crosshairs, status box, buttons 165 void DrawImageTool (KapaImageWidget *image) { 166 150 167 int i; 151 168 Graphic *graphic; … … 160 177 image[0].picture.dx+1, image[0].picture.dy+1); 161 178 162 if (image[0].picture.pix) {163 XPutImage (graphic[0].display, graphic[0].window, graphic[0].gc,164 image[0].picture.pix, 0, 0,165 image[0].picture.x + 1, image[0].picture.y + 1,166 image[0].picture.dx, image[0].picture.dy);167 }168 169 for (i = 0; i < NOVERLAYS; i++) {170 if (image[0].overlay[i].active) {171 PaintOverlay (graphic, image, i);172 }173 }174 175 179 if (image[0].location) { 176 180 if (image[0].cmapbar.pix) { … … 211 215 StatusBox (graphic, image); 212 216 } 213 214 FlushDisplay ();215 217 } 216 218
Note:
See TracChangeset
for help on using the changeset viewer.
