- Fix a bug in new LoadImage implementation

svn path=/trunk/; revision=58630
This commit is contained in:
Jérôme Gardou 2013-03-31 19:55:53 +00:00
parent c9fd3ba4bc
commit 084531c4c1

View file

@ -745,7 +745,7 @@ create_bitmap:
if(!hbmpOld) if(!hbmpOld)
goto end; goto end;
if(!StretchDIBits(hdc, 0, 0, cxDesired, cyDesired, if(!StretchDIBits(hdc, 0, 0, cxDesired, cyDesired,
0, 0, pbmi->bmiHeader.biWidth, pbmi->bmiHeader.biWidth, 0, 0, pbmi->bmiHeader.biWidth, pbmi->bmiHeader.biHeight,
pvBits, pbmiCopy, DIB_RGB_COLORS, SRCCOPY)) pvBits, pbmiCopy, DIB_RGB_COLORS, SRCCOPY))
{ {
ERR("StretchDIBits failed!.\n"); ERR("StretchDIBits failed!.\n");