From 5e3531a5f268c4c99d5fb2daeaada9641ac91196 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Wed, 30 Aug 2017 00:48:02 -0400 Subject: [PATCH] win98: fix core video graphics corruption\nbitmapinfoheader size should never include masks, but this is undocumented --- gfx/drivers/gdi_gfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/drivers/gdi_gfx.c b/gfx/drivers/gdi_gfx.c index 0b21886553..22f430ada4 100644 --- a/gfx/drivers/gdi_gfx.c +++ b/gfx/drivers/gdi_gfx.c @@ -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)