diff --git a/reactos/subsys/win32k/dib/dib16bpp.c b/reactos/subsys/win32k/dib/dib16bpp.c index c8af33f7a55..ed4c26c1811 100644 --- a/reactos/subsys/win32k/dib/dib16bpp.c +++ b/reactos/subsys/win32k/dib/dib16bpp.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: dib16bpp.c,v 1.16 2003/12/23 19:15:08 navaraf Exp $ */ +/* $Id: dib16bpp.c,v 1.17 2003/12/23 19:28:23 navaraf Exp $ */ #undef WIN32_LEAN_AND_MEAN #include #include @@ -398,7 +398,7 @@ void ScaleLineAvg16(PIXEL *Target, PIXEL *Source, int SrcWidth, int TgtWidth) int skip; PIXEL p; - skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / ((2*SrcWidth) + 1)); + skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / (2*SrcWidth) + 1); NumPixels -= skip; while (NumPixels-- > 0) { @@ -431,7 +431,7 @@ void ScaleRectAvg16(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight, PIXEL *PrevSource = NULL; PIXEL *PrevSourceAhead = NULL; - skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / ((2*SrcHeight) + 1)); + skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / (2*SrcHeight) + 1); NumPixels -= skip; ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here? diff --git a/reactos/subsys/win32k/dib/dib32bpp.c b/reactos/subsys/win32k/dib/dib32bpp.c index 0fab5963ca9..e735af40645 100644 --- a/reactos/subsys/win32k/dib/dib32bpp.c +++ b/reactos/subsys/win32k/dib/dib32bpp.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: dib32bpp.c,v 1.10 2003/12/23 19:15:08 navaraf Exp $ */ +/* $Id: dib32bpp.c,v 1.11 2003/12/23 19:28:23 navaraf Exp $ */ #undef WIN32_LEAN_AND_MEAN #include #include @@ -314,7 +314,7 @@ void ScaleLineAvg32(PIXEL *Target, PIXEL *Source, int SrcWidth, int TgtWidth) int skip; PIXEL p; - skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / ((2*SrcWidth) + 1)); + skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / (2*SrcWidth) + 1); NumPixels -= skip; while (NumPixels-- > 0) { @@ -347,7 +347,7 @@ void ScaleRectAvg32(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight, PIXEL *PrevSource = NULL; PIXEL *PrevSourceAhead = NULL; - skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / ((2*SrcHeight) + 1)); + skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / (2*SrcHeight) + 1); NumPixels -= skip; ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here? diff --git a/reactos/subsys/win32k/dib/dib8bpp.c b/reactos/subsys/win32k/dib/dib8bpp.c index 52084de6f72..ce5fc6918d6 100644 --- a/reactos/subsys/win32k/dib/dib8bpp.c +++ b/reactos/subsys/win32k/dib/dib8bpp.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: dib8bpp.c,v 1.11 2003/12/23 19:15:08 navaraf Exp $ */ +/* $Id: dib8bpp.c,v 1.12 2003/12/23 19:28:23 navaraf Exp $ */ #undef WIN32_LEAN_AND_MEAN #include #include @@ -369,7 +369,7 @@ void ScaleLineAvg8(PIXEL *Target, PIXEL *Source, int SrcWidth, int TgtWidth) int skip; PIXEL p; - skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / ((2*SrcWidth) + 1)); + skip = (TgtWidth < SrcWidth) ? 0 : (TgtWidth / (2*SrcWidth) + 1); NumPixels -= skip; while (NumPixels-- > 0) { @@ -402,7 +402,7 @@ void ScaleRectAvg8(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight, PIXEL *PrevSource = NULL; PIXEL *PrevSourceAhead = NULL; - skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / ((2*SrcHeight) + 1)); + skip = (TgtHeight < SrcHeight) ? 0 : (TgtHeight / (2*SrcHeight) + 1); NumPixels -= skip; ScanLine = (PIXEL*)ExAllocatePool(NonPagedPool, TgtWidth*sizeof(PIXEL)); // FIXME: Should we use PagedPool here?