Changeset 34088 for trunk/Ohana/src/kapa2/src/bDrawImage.c
- Timestamp:
- Jun 26, 2012, 11:46:01 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa2/src/bDrawImage.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa2/src/bDrawImage.c
r32695 r34088 11 11 int i_start, i_end, j_start, j_end; 12 12 int I_start, J_start; 13 int dropback; /* this is a bit of a kludge... */14 int dx, dy, DX, DY,inDX, inDY, Xs, Ys;13 // int dropback; /* this is a bit of a kludge... */ 14 int dx, dy, DX, inDX, inDY, Xs, Ys; 15 15 int expand_in, expand_out; 16 double expand,Ix, Iy;16 double Ix, Iy; 17 17 unsigned char *out_pix; 18 18 unsigned short *in_pix, *in_pix_ref; … … 35 35 36 36 assert ((image[0].picture.expand >= 1) || (image[0].picture.expand <= -2)); 37 expand = expand_in = expand_out = 1.0;37 expand_in = expand_out = 1.0; 38 38 if (image[0].picture.expand > 0) { 39 expand = 1 / (1.0*image[0].picture.expand);40 39 expand_out = image[0].picture.expand; 41 40 expand_in = 1; 42 41 } 43 42 if (image[0].picture.expand < 0) { 44 expand = fabs((double)image[0].picture.expand);45 43 expand_out = 1; 46 44 expand_in = -image[0].picture.expand; … … 53 51 dy = image[0].picture.dy; 54 52 DX = image[0].image[0].matrix.Naxis[0]; 55 DY = image[0].image[0].matrix.Naxis[1];53 // int DY = image[0].image[0].matrix.Naxis[1]; 56 54 57 55 // the created buffer is supposed to contain the output windows … … 82 80 inDY = image[0].picture.flipy ? -1 : +1; 83 81 84 dropback = expand_out - (i_end - i_start) % expand_out;85 if ((i_end - i_start) % expand_out == 0) dropback = 0;82 // dropback = expand_out - (i_end - i_start) % expand_out; 83 // if ((i_end - i_start) % expand_out == 0) dropback = 0; 86 84 87 85 ALLOCATE (line_buffer, bDrawColor, 3*dx);
Note:
See TracChangeset
for help on using the changeset viewer.
