TransparentBlt:

- Fix bits and offset calculation (8 << 2 is not 24!)
- Fixes Download! bitmap in 24bpp mode, see bug #1583

svn path=/trunk/; revision=37139
This commit is contained in:
Gregor Schneider 2008-11-01 20:44:40 +00:00
parent 032300fbc9
commit 27985bf35b

View file

@ -559,9 +559,9 @@ DIB_24BPP_TransparentBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
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++)
{