mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00: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:
parent
032300fbc9
commit
27985bf35b
1 changed files with 2 additions and 2 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue