mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
patch by Jeffrey Morlan ( email : mrnobo1024 at yahoo dot com )
the comment above is my. See issue #3295 for more details. svn path=/trunk/; revision=33763
This commit is contained in:
parent
22942d0ae4
commit
e141a01feb
1 changed files with 6 additions and 1 deletions
|
@ -812,7 +812,12 @@ NtGdiStretchDIBitsInternal(
|
|||
|
||||
pDC = DC_LockDc(hdcMem);
|
||||
|
||||
IntSetDIBits(pDC, hBitmap, 0, BitsInfo->bmiHeader.biHeight, Bits,
|
||||
/* Note BitsInfo->bmiHeader.biHeight is the number of scanline,
|
||||
* if it negitve we getting to many scanline for scanline is UINT not
|
||||
* a INT, so we need make the negtive value to positve and that make the
|
||||
* count correct for negtive bitmap, TODO : we need testcase for this api */
|
||||
|
||||
IntSetDIBits(pDC, hBitmap, 0, abs(BitsInfo->bmiHeader.biHeight), Bits,
|
||||
BitsInfo, Usage);
|
||||
|
||||
DC_UnlockDc(pDC);
|
||||
|
|
Loading…
Reference in a new issue