Changeset 41157 for trunk/Ohana/src/kapa2/src/bDrawOverlay.c
- Timestamp:
- Nov 27, 2019, 11:00:17 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa2/src/bDrawOverlay.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/src/bDrawOverlay.c
r40558 r41157 24 24 } 25 25 26 Xmin = 0; 27 Ymin = 0; 28 Xmax = image[0].picture.dx; 29 Ymax = image[0].picture.dy; 26 // Xmin = 0; 27 // Ymin = 0; 28 // Xmax = image[0].picture.dx; 29 // Ymax = image[0].picture.dy; 30 31 Xmin = image[0].picture.x; 32 Ymin = image[0].picture.y; 33 Xmax = image[0].picture.x + image[0].picture.dx; // maybe this should be just dx? 34 Ymax = image[0].picture.y + image[0].picture.dy; 30 35 31 36 if (N == INFRONT) { … … 35 40 36 41 for (i = 0; i < image[0].overlay[N].Nobjects; i++) { 37 Image_to_Picture (&X, &Y, image[0].overlay[N].objects[i].x, image[0].overlay[N].objects[i].y, &image[0].picture); 42 // XXX the 0.5,0.5 offset is apparently needed here. 43 // work on rationalizing these functions in the context of their different plotting types 44 Image_to_Screen (&X, &Y, image[0].overlay[N].objects[i].x - 0.5, image[0].overlay[N].objects[i].y - 0.5, &image[0].picture); 38 45 dX = image[0].overlay[N].objects[i].dx * expand; 39 46 dY = image[0].overlay[N].objects[i].dy * expand;
Note:
See TracChangeset
for help on using the changeset viewer.
