From 98efb8ab35556522f79a71e607ecf4223bd32749 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 19 Feb 2004 09:31:30 +0000 Subject: [PATCH] Fix by Waldo Alvarez Cacizares, fixes 16<->16 bpp stretchblitting (AbiWord splashscreen will look good) svn path=/trunk/; revision=8260 --- reactos/subsys/win32k/dib/dib16bpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/dib/dib16bpp.c b/reactos/subsys/win32k/dib/dib16bpp.c index 1c8ef15f066..efb81a620c0 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.18 2004/02/14 22:24:54 navaraf Exp $ */ +/* $Id: dib16bpp.c,v 1.19 2004/02/19 09:31:30 fireball Exp $ */ #undef WIN32_LEAN_AND_MEAN #include #include @@ -422,7 +422,7 @@ void ScaleRectAvg16(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight, int TgtWidth, int TgtHeight, int srcPitch, int dstPitch) { int NumPixels = TgtHeight; - int IntPart = (SrcHeight / TgtHeight) * SrcWidth; + int IntPart = ((SrcHeight / TgtHeight) * srcPitch) / 2; //(SrcHeight / TgtHeight) * SrcWidth; int FractPart = SrcHeight % TgtHeight; int Mid = TgtHeight / 2; int E = 0;