From 9af64d91894e56f276be245eb19d4fe468490504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 4 Apr 2004 16:40:05 +0000 Subject: [PATCH] Fix scanline increment for 32bpp stretch blts svn path=/trunk/; revision=8965 --- reactos/subsys/win32k/dib/dib32bpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/dib/dib32bpp.c b/reactos/subsys/win32k/dib/dib32bpp.c index c869bdf747d..a3ed08c273b 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.16 2004/04/01 19:31:05 gvg Exp $ */ +/* $Id: dib32bpp.c,v 1.17 2004/04/04 16:40:05 gvg Exp $ */ #undef WIN32_LEAN_AND_MEAN #include #include @@ -391,7 +391,7 @@ void ScaleRectAvg32(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight, int TgtWidth, int TgtHeight, int srcPitch, int dstPitch) { int NumPixels = TgtHeight; - int IntPart = ((SrcHeight / TgtHeight) * srcPitch) >> 1; //(SrcHeight / TgtHeight) * SrcWidth; + int IntPart = ((SrcHeight / TgtHeight) * srcPitch) / 4; //(SrcHeight / TgtHeight) * SrcWidth; int FractPart = SrcHeight % TgtHeight; int Mid = TgtHeight >> 1; int E = 0;