win98: fix core video graphics corruption\nbitmapinfoheader size should never include masks, but this is undocumented

This commit is contained in:
Brad Parker 2017-08-30 00:48:02 -04:00
parent 85e2a11845
commit 5e3531a5f2

View File

@ -239,7 +239,7 @@ static bool gdi_gfx_frame(void *data, const void *frame,
info->bmiHeader.biWidth = pitch / (bits / 8);
info->bmiHeader.biHeight = -height;
info->bmiHeader.biPlanes = 1;
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER) + (3 * sizeof(RGBQUAD));
info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
info->bmiHeader.biSizeImage = 0;
if (bits == 16)