mirror of https://github.com/GNOME/gimp.git
fixed bug in scale_region that caused what looks like scan line swapping.
* app/paint_funcs.c: fixed bug in scale_region that caused what looks like scan line swapping.
This commit is contained in:
parent
416aa56f19
commit
25271d187e
|
@ -1,3 +1,8 @@
|
|||
Mon Aug 23 22:41:52 1999 Jay Cox (jaycox@earthlink.net)
|
||||
|
||||
* app/paint_funcs.c: fixed bug in scale_region that caused what
|
||||
looks like scan line swapping.
|
||||
|
||||
1999-08-24 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* plug-ins/common/gpb.c: Added saving of .gih files.
|
||||
|
|
|
@ -4092,8 +4092,8 @@ scale_region (PixelRegion *srcPR,
|
|||
} break;
|
||||
case LINEAR_INTERPOLATION:
|
||||
{
|
||||
double dy = ((y - 0.5) * y_rat) - new_y;
|
||||
double idy = 1.0 - dy;
|
||||
double idy = ((y - 0.5) * y_rat) - new_y;
|
||||
double dy = 1.0 - idy;
|
||||
for (x = 0; x < width * bytes; x++)
|
||||
accum[x] = dy * src[1][x] + idy * src[2][x];
|
||||
} break;
|
||||
|
|
|
@ -4092,8 +4092,8 @@ scale_region (PixelRegion *srcPR,
|
|||
} break;
|
||||
case LINEAR_INTERPOLATION:
|
||||
{
|
||||
double dy = ((y - 0.5) * y_rat) - new_y;
|
||||
double idy = 1.0 - dy;
|
||||
double idy = ((y - 0.5) * y_rat) - new_y;
|
||||
double dy = 1.0 - idy;
|
||||
for (x = 0; x < width * bytes; x++)
|
||||
accum[x] = dy * src[1][x] + idy * src[2][x];
|
||||
} break;
|
||||
|
|
Loading…
Reference in New Issue