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/di…
==============================================================================
--- 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++)
{