Avoid magic number.
This commit is contained in:
parent
853cb86fa7
commit
68b7802cd5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue