[ros-diffs] [gschneider] 37139: TransparentBlt: - Fix bits and offset calculation (8 << 2 is not 24!) - Fixes Download! bitmap in 24bpp mode, see bug #1583

gschneider at svn.reactos.org gschneider at svn.reactos.org
Sat Nov 1 21:44:41 CET 2008


Author: gschneider
Date: Sat Nov  1 15:44:40 2008
New Revision: 37139

URL: http://svn.reactos.org/svn/reactos?rev=37139&view=rev
Log:
TransparentBlt:
- Fix bits and offset calculation (8 << 2 is not 24!)
- Fixes Download! bitmap in 24bpp mode, see bug #1583

Modified:
    trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c

Modified: trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c?rev=37139&r1=37138&r2=37139&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c [iso-8859-1] Sat Nov  1 15:44:40 2008
@@ -559,9 +559,9 @@
 
   SourceY = SourcePoint->y;
   DestBits = (BYTE*)((PBYTE)DestSurf->pvScan0 +
-                      (DestRect->left << 2) +
+                      (DestRect->left * 3) +
                       DestRect->top * DestSurf->lDelta);
-  wd = DestSurf->lDelta - ((DestRect->right - DestRect->left) << 2);
+  wd = DestSurf->lDelta - ((DestRect->right - DestRect->left) * 3);
 
   for(Y = DestRect->top; Y < DestRect->bottom; Y++)
   {



More information about the Ros-diffs mailing list