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:
jaycox 1999-08-24 05:55:01 +00:00
parent 416aa56f19
commit 25271d187e
3 changed files with 9 additions and 4 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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;