Set the header size as expected instead of setting the bitmap width

svn path=/trunk/; revision=39180
This commit is contained in:
Gregor Schneider 2009-01-28 15:43:02 +00:00
parent aeb01dd869
commit 5fbf308acc

View file

@ -834,7 +834,7 @@ BITMAP_GetObject(SURFACE *psurf, INT Count, LPVOID buffer)
/* Fill rest of DIBSECTION */
PDIBSECTION pds = buffer;
pds->dsBmih.biSize =
pds->dsBmih.biSize = sizeof(BITMAPINFOHEADER);
pds->dsBmih.biWidth = pds->dsBm.bmWidth;
pds->dsBmih.biHeight = pds->dsBm.bmHeight;
pds->dsBmih.biPlanes = pds->dsBm.bmPlanes;