- 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:
Thomas Faber 2016-03-26 15:35:21 +00:00
parent 7dd5bed1c6
commit aa172ad912

View file

@ -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");