another DIB_32BPP_StretchBlt fix (patch by GreatLord)
authorChristoph von Wittich <christoph_vw@reactos.org>
Tue, 10 Jan 2006 20:50:21 +0000 (20:50 +0000)
committerChristoph von Wittich <christoph_vw@reactos.org>
Tue, 10 Jan 2006 20:50:21 +0000 (20:50 +0000)
svn path=/trunk/; revision=20767

reactos/subsys/win32k/dib/dib32bpp.c

index 3eb9f68..5ddf3a0 100644 (file)
@@ -632,7 +632,7 @@ BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
             for (DesX=0; DesX<DesSizeX; DesX++, DestBits++)
             {                  
                  sx = ((DesX  * SrcSizeX) / DesSizeX) + SourceRect->left;              
-                 color = DIB_32BPP_GetPixel(SourceSurf, sx, sy);
+                 color = DIB_8BPP_GetPixel(SourceSurf, sx, sy);
                  *DestBits =  XLATEOBJ_iXlate(ColorTranslation, color);
             }
             DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);