Avoid magic number.

This commit is contained in:
Jon Griffiths 2004-11-22 18:19:59 +00:00 committed by Alexandre Julliard
parent 853cb86fa7
commit 68b7802cd5
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ INT16 MFDRV_CreateBrushIndirect(PHYSDEV dev, HBRUSH hBrush )
goto done; 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) + size = sizeof(METARECORD) + sizeof(WORD) + sizeof(BITMAPINFO) +
sizeof(RGBQUAD) + bmSize; sizeof(RGBQUAD) + bmSize;