mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[USER32]
- Use the correct, previously calculated width and height in BITMAP_LoadImageW instead of assuming pbmi is an actual BITMAPINFO. Fixes loading bitmaps using BITMAPCOREINFO format. Patch by Mark Jansen. CORE-10889 svn path=/trunk/; revision=71056
This commit is contained in:
parent
7dd5bed1c6
commit
aa172ad912
1 changed files with 1 additions and 1 deletions
|
@ -1298,7 +1298,7 @@ create_bitmap:
|
|||
if(!hbmpOld)
|
||||
goto end;
|
||||
if(!StretchDIBits(hdc, 0, 0, cxDesired, cyDesired,
|
||||
0, 0, pbmi->bmiHeader.biWidth, pbmi->bmiHeader.biHeight,
|
||||
0, 0, width, height,
|
||||
pvBits, pbmiCopy, DIB_RGB_COLORS, SRCCOPY))
|
||||
{
|
||||
ERR("StretchDIBits failed!.\n");
|
||||
|
|
Loading…
Reference in a new issue