From 68b7802cd5b4c7166d16b2bc437861c0ad3e01e3 Mon Sep 17 00:00:00 2001 From: Jon Griffiths Date: Mon, 22 Nov 2004 18:19:59 +0000 Subject: [PATCH] Avoid magic number. --- dlls/gdi/mfdrv/objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/gdi/mfdrv/objects.c b/dlls/gdi/mfdrv/objects.c index 33f1b2f6ea9..2ecc4745c18 100644 --- a/dlls/gdi/mfdrv/objects.c +++ b/dlls/gdi/mfdrv/objects.c @@ -172,7 +172,7 @@ INT16 MFDRV_CreateBrushIndirect(PHYSDEV dev, HBRUSH hBrush ) goto done; } - bmSize = DIB_GetDIBImageBytes(bm.bmWidth, bm.bmHeight, 1); + bmSize = DIB_GetDIBImageBytes(bm.bmWidth, bm.bmHeight, DIB_PAL_COLORS); size = sizeof(METARECORD) + sizeof(WORD) + sizeof(BITMAPINFO) + sizeof(RGBQUAD) + bmSize;