Changeset 16255
- Timestamp:
- Jan 27, 2008, 9:18:37 AM (18 years ago)
- Location:
- trunk/Ohana/src/kapa2
- Files:
-
- 24 edited
-
include/prototypes.h (modified) (2 diffs)
-
include/structures.h (modified) (1 diff)
-
src/ButtonFunctions.c (modified) (1 diff)
-
src/Center.c (modified) (1 diff)
-
src/CreateZoom16.c (modified) (2 diffs)
-
src/CreateZoom24.c (modified) (2 diffs)
-
src/CreateZoom32.c (modified) (4 diffs)
-
src/CreateZoom8.c (modified) (2 diffs)
-
src/CrossHairs.c (modified) (2 diffs)
-
src/CursorOps.c (modified) (3 diffs)
-
src/Image.c (modified) (2 diffs)
-
src/InterpretKeys.c (modified) (5 diffs)
-
src/JPEGit24.c (modified) (3 diffs)
-
src/PSOverlay.c (modified) (1 diff)
-
src/PaintOverlay.c (modified) (1 diff)
-
src/Remap16.c (modified) (2 diffs)
-
src/Remap24.c (modified) (2 diffs)
-
src/Remap32.c (modified) (1 diff)
-
src/Remap8.c (modified) (2 diffs)
-
src/StatusBox.c (modified) (1 diff)
-
src/UpdatePointer.c (modified) (2 diffs)
-
src/UpdateStatusBox.c (modified) (1 diff)
-
src/bDrawOverlay.c (modified) (1 diff)
-
test/input (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/include/prototypes.h
r16061 r16255 162 162 void DrawButton PROTO((Graphic *graphic, Button *button)); 163 163 void DrawBitmap PROTO((Graphic *graphic, int x, int y, int dx, int dy, char *bitmap, int mode)); 164 void CrossHairs PROTO((Graphic *graphic, KapaImageWidget*image));164 void CrossHairs PROTO((Graphic *graphic, Picture *image)); 165 165 void hh_hms PROTO((char *line, double ra, double dec, char sep)); 166 166 … … 171 171 void PaintTickmarks PROTO((Graphic *graphic, KapaImageWidget *image)); 172 172 173 void Screen_to_Image PROTO((double *x1, double *y1, double x2, double y2, KapaImageWidget *image));174 void Image_to_Screen PROTO((double *x1, double *y1, double x2, double y2, KapaImageWidget *image));173 void Screen_to_Image PROTO((double *x1, double *y1, double x2, double y2, Picture *picture)); 174 void Image_to_Screen PROTO((double *x1, double *y1, double x2, double y2, Picture *picture)); 175 175 176 176 void DragColorbar PROTO((Graphic *graphic, KapaImageWidget *image, XButtonEvent *mouse_event)); -
trunk/Ohana/src/kapa2/include/structures.h
r16228 r16255 94 94 int DX, DY; // size of displayed picture (must be updated with new images...) 95 95 int expand; // zoomscale 96 double Xo, Yo; // image pixel at screen center 96 double X, Y; // offset of image center 97 double Xo, Yo; // reference image pixel (picture has X - Xo at center) 97 98 XImage *pix; 98 99 char *data; -
trunk/Ohana/src/kapa2/src/ButtonFunctions.c
r16228 r16255 44 44 int Recenter (Graphic *graphic, KapaImageWidget *image) { 45 45 46 image[0]. X = 0;47 image[0]. Y = 0;46 image[0].picture.X = 0; 47 image[0].picture.Y = 0; 48 48 49 49 Remap (graphic, image); -
trunk/Ohana/src/kapa2/src/Center.c
r16228 r16255 16 16 if (image == NULL) return (TRUE); 17 17 18 image[0].picture.X = 0.5*image[0].image[0].matrix.Naxis[0] - X;19 image[0].picture.Y = 0.5*image[0].image[0].matrix.Naxis[1] - Y;18 image[0].picture.Xo = 0.5*image[0].image[0].matrix.Naxis[0] - X; 19 image[0].picture.Yo = 0.5*image[0].image[0].matrix.Naxis[1] - Y; 20 20 if ((zoom != 0) && (zoom != -1)) { 21 21 image[0].picture.expand = zoom; -
trunk/Ohana/src/kapa2/src/CreateZoom16.c
r16011 r16255 15 15 void CreateZoom16 (KapaImageWidget *image, Graphic *graphic, double x, double y) { 16 16 17 # if (0) 17 18 int i, j, ii, jj; 18 19 int i_start, i_end, j_start, j_end; … … 152 153 image[0].zoom.data, image[0].zoom.dx, image[0].zoom.dy, 16, 0); 153 154 155 # endif 154 156 } -
trunk/Ohana/src/kapa2/src/CreateZoom24.c
r16011 r16255 15 15 void CreateZoom24 (KapaImageWidget *image, Graphic *graphic, double x, double y) { 16 16 17 # if (0) 17 18 int i, j, ii, jj, extra; 18 19 int i_start, i_end, j_start, j_end; … … 186 187 image[0].zoom.data, image[0].zoom.dx, image[0].zoom.dy, 32, 0); 187 188 189 # endif 188 190 } -
trunk/Ohana/src/kapa2/src/CreateZoom32.c
r16228 r16255 8 8 int dropback; /* this is a bit of a kludge... */ 9 9 int dx, dy, DX, DY; 10 double expand, zoomscale, Ix, Iy;10 double expand, Sx, Sy, Ix, Iy; 11 11 int expand_in, expand_out; 12 12 unsigned int *out_pix, *out_pix2; … … 30 30 back = graphic[0].back; 31 31 32 zoomscale = MAX (5, image[0].expand + 5); 33 expand = 1 / zoomscale; 34 expand_out = (int) zoomscale; 35 expand_in = 1; 32 // set up expansions 33 assert ((image[0].zoom.expand >= 1) || (image[0].zoom.expand <= -2)); 34 expand = expand_in = expand_out = 1.0; 35 if (image[0].zoom.expand > 0) { 36 expand = 1 / (1.0*image[0].zoom.expand); 37 expand_out = image[0].zoom.expand; 38 expand_in = 1; 39 } 40 if (image[0].zoom.expand < 0) { 41 expand = fabs((double)image[0].zoom.expand); 42 expand_out = 1; 43 expand_in = -image[0].zoom.expand; 44 } 36 45 46 // define the image sizes 37 47 dx = image[0].zoom.dx; 38 48 dy = image[0].zoom.dy; … … 40 50 DY = image[0].image[0].matrix.Naxis[1]; 41 51 42 /* Ix,Iy are the image coordinates of the first image pixel */ 43 // x,y is the image coordinate of the zoombox center 44 Ix = x - expand*(int)(0.5*(dx + 1)) + 1; 45 Iy = y - expand*(int)(0.5*(dy + 1)) + 1; 52 // Ix, Iy are the image coordinates of the 0,0 screen pixel 53 Screen_to_Image (&Ix, &Iy, 0.0, 0.0, &image[0].picture); 46 54 47 i_start = MIN (MAX (-Ix / expand, (1 - FRAC(Ix)) / expand), dx - expand_out + 1); 48 j_start = MIN (MAX (-Iy / expand, (1 - FRAC(Iy)) / expand), dy - expand_out + 1); 49 i_end = MAX (MIN ((DX-Ix) / expand, dx - expand_out + 1), 0); 50 j_end = MAX (MIN ((DY-Iy) / expand, dy - expand_out + 1), 0); 55 // Ix, Iy are now limited to valid image coordinates 56 Ix = MIN (MAX (Ix, 0), DX); 57 Iy = MIN (MAX (Iy, 0), DY); 58 59 // Sx, Sy are the screen coordinates of the Ix,Iy pixel 60 Image_to_Screen (&Sx, &Sy, Ix, Iy, &image[0].picture); 61 62 // i_start, j_start are now limited to valid screen coordinates 63 i_start = MIN (MAX (Sx, 0), dx); 64 j_start = MIN (MAX (Sy, 0), dy); 65 66 // Ix, Iy are the image coordinates of the 0,0 screen pixel 67 Screen_to_Image (&Ix, &Iy, dx, dy, &image[0].picture); 68 69 // Ix, Iy are now limited to valid image coordinates 70 Ix = MIN (MAX (Ix, 0), DX); 71 Iy = MIN (MAX (Iy, 0), DY); 72 73 // Sx, Sy are the screen coordinates of the Ix,Iy pixel 74 Image_to_Screen (&Sx, &Sy, Ix, Iy, &image[0].picture); 75 76 // i_end, j_end are now limited to valid screen coordinates 77 i_end = MIN (MAX (Sx, 0), dx); 78 j_end = MIN (MAX (Sy, 0), dy); 51 79 52 80 dropback = expand_out - (i_end - i_start) % expand_out; … … 58 86 /********** below we do the mapping from buffer pixels (in) to picture pixels (out) **********/ 59 87 88 // XXX can we just drop this? 60 89 if ((i_end < i_start) || (j_end < j_start)) { 61 90 for (j = 0; j < dx*dy; j++, out_pix++) -
trunk/Ohana/src/kapa2/src/CreateZoom8.c
r16011 r16255 15 15 void CreateZoom8 (KapaImageWidget *image, Graphic *graphic, double x, double y) { 16 16 17 # if (0) 17 18 int i, j, ii, jj; 18 19 int i_start, i_end, j_start, j_end; … … 138 139 image[0].zoom.data, image[0].zoom.dx, image[0].zoom.dy, 8, 0); 139 140 141 # endif 140 142 } -
trunk/Ohana/src/kapa2/src/CrossHairs.c
r16228 r16255 1 1 # include "Ximage.h" 2 2 3 void CrossHairs (Graphic *graphic, KapaImageWidget*image) {3 void CrossHairs (Graphic *graphic, Picture *image) { 4 4 5 5 int x0, x1, x5, x7; … … 7 7 double zoomscale; 8 8 9 zoomscale = image[0].zoom; 10 x0 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale - 2.5) + image[0].zoom.x; 11 x5 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale - 0.5) + image[0].zoom.x; 12 x7 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale + 0.5) + image[0].zoom.x; 13 x1 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale + 2.5) + image[0].zoom.x; 9 // is this totally wrong?? 10 zoomscale = image[0].expand; 11 x0 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale - 2.5) + image[0].x; 12 x5 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale - 0.5) + image[0].x; 13 x7 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale + 0.5) + image[0].x; 14 x1 = (zoomscale) * (0.5 * (ZOOM_X + 1) / zoomscale + 2.5) + image[0].x; 14 15 15 y4 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale - 2.5) + image[0]. zoom.y;16 y2 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale - 0.5) + image[0]. zoom.y;17 y0 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale + 0.5) + image[0]. zoom.y;18 y5 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale + 2.5) + image[0]. zoom.y;16 y4 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale - 2.5) + image[0].y; 17 y2 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale - 0.5) + image[0].y; 18 y0 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale + 0.5) + image[0].y; 19 y5 = (zoomscale) * (0.5 * (ZOOM_Y + 1) / zoomscale + 2.5) + image[0].y; 19 20 20 21 -
trunk/Ohana/src/kapa2/src/CursorOps.c
r16228 r16255 3 3 void Screen_to_Image (double *x1, double *y1, double x2, double y2, Picture *picture) { 4 4 5 double expand;5 double xs, ys, expand; 6 6 7 7 expand = 1.0; … … 23 23 void Image_to_Screen (double *x1, double *y1, double x2, double y2, Picture *picture) { 24 24 25 double expand;25 double xs, ys, expand; 26 26 27 27 /* notice that here, expand is the reciprocal of the expand above */ … … 30 30 expand = picture[0].expand; 31 31 } else { 32 expand = 1 / fabs((double) image[0].expand);32 expand = 1 / fabs((double)picture[0].expand); 33 33 } 34 34 -
trunk/Ohana/src/kapa2/src/Image.c
r16228 r16255 50 50 image[0].picture.X = 0.0; 51 51 image[0].picture.Y = 0.0; 52 image[0].picture.Xo = 0.0; 53 image[0].picture.Yo = 0.0; 52 54 image[0].picture.expand = 1; 53 55 54 56 image[0].zoom.X = 0.0; 55 57 image[0].zoom.Y = 0.0; 58 image[0].zoom.Xo = 0.0; 59 image[0].zoom.Yo = 0.0; 56 60 image[0].zoom.expand = +5; 57 61 58 62 image[0].wide.X = 0.0; 59 63 image[0].wide.Y = 0.0; 64 image[0].wide.Xo = 0.0; 65 image[0].wide.Yo = 0.0; 60 66 image[0].wide.expand = -5; 61 67 … … 148 154 image[0].cmapbar.dx, image[0].cmapbar.dy); 149 155 150 CrossHairs (graphic, image);156 CrossHairs (graphic, &image[0].zoom); 151 157 152 158 /* erase everything below zoom box, then draw */ -
trunk/Ohana/src/kapa2/src/InterpretKeys.c
r16228 r16255 83 83 // 0.5 image pixels is 1 screen pixel for expand == +2 84 84 // 2.0 image pixels is 1 screen pixel for expand == -2 85 if (image[0]. expand == 0) image[0].expand = 1;86 offset = (image[0]. expand > 0) ? 1.0 / image[0].expand : -image[0].expand;85 if (image[0].picture.expand == 0) image[0].picture.expand = 1; 86 offset = (image[0].picture.expand > 0) ? 1.0 / image[0].picture.expand : -image[0].picture.expand; 87 87 if (modstate & ControlMask) offset *= 100; 88 88 … … 93 93 SetColorScale (graphic, image); 94 94 Remap (graphic, image); 95 Reorient (graphic, image, image[0]. X, image[0].Y, 0);95 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, 0); 96 96 break; 97 97 … … 100 100 SetColorScale (graphic, image); 101 101 Remap (graphic, image); 102 Reorient (graphic, image, image[0]. X, image[0].Y, 0);102 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, 0); 103 103 break; 104 104 … … 107 107 SetColorScale (graphic, image); 108 108 Remap (graphic, image); 109 Reorient (graphic, image, image[0]. X, image[0].Y, 0);109 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, 0); 110 110 break; 111 111 112 112 case XK_KP_Home: 113 113 case XK_Home: 114 image[0]. expand = 1;115 Reorient (graphic, image, image[0]. X, image[0].Y, 0);114 image[0].picture.expand = 1; 115 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, 0); 116 116 break; 117 117 case XK_KP_End: 118 118 case XK_End: 119 image[0]. expand = 1;119 image[0].picture.expand = 1; 120 120 Reorient (graphic, image, 0, 0, 0); 121 121 break; … … 130 130 case XK_Prior: 131 131 case XK_KP_Prior: 132 Reorient (graphic, image, image[0]. X, image[0].Y, +1);132 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, +1); 133 133 break; 134 134 case XK_Next: 135 135 case XK_KP_Next: 136 Reorient (graphic, image, image[0]. X, image[0].Y, -1);136 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, -1); 137 137 break; 138 138 case XK_Up: 139 139 case XK_KP_Up: 140 Reorient (graphic, image, image[0]. X, image[0].Y + offset, 0);140 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y + offset, 0); 141 141 break; 142 142 case XK_Down: 143 143 case XK_KP_Down: 144 Reorient (graphic, image, image[0]. X, image[0].Y - offset, 0);144 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y - offset, 0); 145 145 break; 146 146 case XK_Left: 147 147 case XK_KP_Left: 148 Reorient (graphic, image, image[0]. X + offset, image[0].Y, 0);148 Reorient (graphic, image, image[0].picture.X + offset, image[0].picture.Y, 0); 149 149 break; 150 150 case XK_Right: 151 151 case XK_KP_Right: 152 Reorient (graphic, image, image[0]. X - offset, image[0].Y, 0);152 Reorient (graphic, image, image[0].picture.X - offset, image[0].picture.Y, 0); 153 153 break; 154 154 155 155 case XK_KP_Add: 156 156 image[0].image[0].zero += 0.1*image[0].image[0].range; 157 Reorient (graphic, image, image[0]. X, image[0].Y, 0);157 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, 0); 158 158 break; 159 159 case XK_KP_Subtract: 160 160 image[0].image[0].zero -= 0.1*image[0].image[0].range; 161 Reorient (graphic, image, image[0]. X, image[0].Y, 0);161 Reorient (graphic, image, image[0].picture.X, image[0].picture.Y, 0); 162 162 break; 163 163 -
trunk/Ohana/src/kapa2/src/JPEGit24.c
r16061 r16255 8 8 // XXX this currently writes out the jpeg for just the active image 9 9 int JPEGit24 (int sock) { 10 11 # if (0) 10 12 11 13 struct jpeg_compress_struct cinfo; … … 75 77 } 76 78 79 assert ((image[0].picture.expand >= 1) || (image[0].picture.expand <= -2)); 77 80 expand = expand_in = expand_out = 1.0; 78 if (image[0].expand == 0) /* set up expansions */ 79 image[0].expand = 1; 80 if (image[0].expand > 0) { 81 expand = 1 / (1.0*image[0].expand); 82 expand_out = image[0].expand; 81 if (image[0].picture.expand > 0) { 82 expand = 1 / (1.0*image[0].picture.expand); 83 expand_out = image[0].picture.expand; 83 84 expand_in = 1; 84 85 } 85 if (image[0]. expand < 0) {86 expand = fabs((double)image[0]. expand);86 if (image[0].picture.expand < 0) { 87 expand = fabs((double)image[0].picture.expand); 87 88 expand_out = 1; 88 expand_in = -image[0]. expand;89 expand_in = -image[0].picture.expand; 89 90 } 90 91 … … 232 233 jpeg_destroy_compress (&cinfo); 233 234 235 236 # endif 234 237 return (TRUE); 235 238 } -
trunk/Ohana/src/kapa2/src/PSOverlay.c
r16228 r16255 9 9 10 10 expand = 1.0; 11 if (image[0]. expand > 0) {12 expand = 1 / (1.0*image[0]. expand);11 if (image[0].picture.expand > 0) { 12 expand = 1 / (1.0*image[0].picture.expand); 13 13 } 14 if (image[0]. expand < 0) {15 expand = fabs((double)image[0]. expand);14 if (image[0].picture.expand < 0) { 15 expand = fabs((double)image[0].picture.expand); 16 16 } 17 17 -
trunk/Ohana/src/kapa2/src/PaintOverlay.c
r16228 r16255 11 11 12 12 expand = 1.0; 13 if (image[0]. expand > 0) {14 expand = 1 / (1.0*image[0]. expand);13 if (image[0].picture.expand > 0) { 14 expand = 1 / (1.0*image[0].picture.expand); 15 15 } 16 if (image[0]. expand < 0) {17 expand = fabs((double)image[0]. expand);16 if (image[0].picture.expand < 0) { 17 expand = fabs((double)image[0].picture.expand); 18 18 } 19 19 -
trunk/Ohana/src/kapa2/src/Remap16.c
r16228 r16255 3 3 void Remap16 (Graphic *graphic, KapaImageWidget *image, Matrix *matrix) { 4 4 5 # if (0) 5 6 int i, j, ii, jj; 6 7 int i_start, i_end, j_start, j_end; … … 165 166 free (pixel1); 166 167 free (pixel2); 168 169 # endif 167 170 } 168 171 -
trunk/Ohana/src/kapa2/src/Remap24.c
r16228 r16255 3 3 void Remap24 (Graphic *graphic, KapaImageWidget *image, Matrix *matrix) { 4 4 5 # if (0) 5 6 int i, j, ii, jj; 6 7 int i_start, i_end, j_start, j_end; … … 167 168 free (pixel2); 168 169 free (pixel3); 170 171 # endif 169 172 } 170 173 -
trunk/Ohana/src/kapa2/src/Remap32.c
r16228 r16255 23 23 24 24 // set up expansions 25 assert ((image[0].picture.expand >= 1) || (image[0].picture.expand <= -2)); 25 26 expand = expand_in = expand_out = 1.0; 26 if (image[0].expand == 0) 27 image[0].expand = 1; 28 if (image[0].expand > 0) { 29 expand = 1 / (1.0*image[0].expand); 30 expand_out = image[0].expand; 27 if (image[0].picture.expand > 0) { 28 expand = 1 / (1.0*image[0].picture.expand); 29 expand_out = image[0].picture.expand; 31 30 expand_in = 1; 32 31 } 33 if (image[0]. expand < 0) {34 expand = fabs((double)image[0]. expand);32 if (image[0].picture.expand < 0) { 33 expand = fabs((double)image[0].picture.expand); 35 34 expand_out = 1; 36 expand_in = -image[0]. expand;35 expand_in = -image[0].picture.expand; 37 36 } 38 37 39 // define the image boundaries38 // define the image sizes 40 39 dx = image[0].picture.dx; 41 40 dy = image[0].picture.dy; -
trunk/Ohana/src/kapa2/src/Remap8.c
r16228 r16255 3 3 void Remap8 (Graphic *graphic, KapaImageWidget *image, Matrix *matrix) { 4 4 5 # if (0) 5 6 int i, j, ii, jj; 6 7 int i_start, i_end, j_start, j_end; … … 132 133 image[0].picture.pix = XCreateImage (graphic[0].display, graphic[0].visual, graphic[0].depth, ZPixmap, 0, 133 134 image[0].picture.data, image[0].picture.dx, image[0].picture.dy, 8, 0); 135 136 # endif 134 137 } 135 138 -
trunk/Ohana/src/kapa2/src/StatusBox.c
r16011 r16255 5 5 double x, y, z; 6 6 7 z = -1; 8 7 9 if (image[0].MovePointer) { 8 10 x = 0.5*image[0].image[0].matrix.Naxis[0]; 9 11 y = 0.5*image[0].image[0].matrix.Naxis[1]; 10 z = -1;11 image[0]. x = x;12 image[0]. y = y;13 image[0].z = z;12 // z = -1; 13 image[0].zoom.x = x; 14 image[0].zoom.y = y; 15 // image[0].z = z; 14 16 } else { 15 x = image[0]. x;16 y = image[0]. y;17 z = image[0].z;17 x = image[0].zoom.x; 18 y = image[0].zoom.y; 19 // z = image[0].z; 18 20 } 19 21 -
trunk/Ohana/src/kapa2/src/UpdatePointer.c
r16228 r16255 30 30 skip: 31 31 image[0].zoom.X = x; 32 image[0].zoom.Y = Y;32 image[0].zoom.Y = y; 33 33 34 34 UpdateStatusBox (graphic, image, x, y, z, 0); … … 40 40 image[0].zoom.x, image[0].zoom.y, 41 41 image[0].zoom.dx, image[0].zoom.dy); 42 CrossHairs (graphic, image);42 CrossHairs (graphic, &image[0].zoom); 43 43 XFlush (graphic[0].display); 44 44 } -
trunk/Ohana/src/kapa2/src/UpdateStatusBox.c
r16011 r16255 21 21 bzero (line, 100); 22 22 sprintf (line, "(%d x %d) @ %d ", 23 image[0].picture.dx, image[0].picture.dy, image[0]. expand);23 image[0].picture.dx, image[0].picture.dy, image[0].picture.expand); 24 24 XDrawString (graphic[0].display, graphic[0].window, graphic[0].gc, 25 25 image[0].text_x + PAD1, image[0].text_y + 4*textpad + 4*PAD1, line, 25); -
trunk/Ohana/src/kapa2/src/bDrawOverlay.c
r16228 r16255 17 17 18 18 expand = 1.0; 19 if (image[0]. expand > 0) {20 expand = 1 / (1.0*image[0]. expand);19 if (image[0].picture.expand > 0) { 20 expand = 1 / (1.0*image[0].picture.expand); 21 21 } 22 if (image[0]. expand < 0) {23 expand = fabs((double)image[0]. expand);22 if (image[0].picture.expand < 0) { 23 expand = fabs((double)image[0].picture.expand); 24 24 } 25 25 -
trunk/Ohana/src/kapa2/test/input
r16039 r16255 1 2 macro test1 3 mcreate a 512 512 4 set x = xramp(a) 5 tv x 0 512 6 end 1 7 2 8 macro go
Note:
See TracChangeset
for help on using the changeset viewer.
