mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 10:40:20 +08:00
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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user