gdi32/enhmfdrv: Don't fill in the PelsPerMeter fields in the BITMAPINFOHEADER when blitting.
This commit is contained in:
parent
1bd13dec61
commit
d456f99a04
|
@ -149,10 +149,8 @@ static BOOL EMFDRV_BitBlockTransfer(
|
||||||
/* Assume the bitmap isn't compressed and set the BI_RGB flag. */
|
/* Assume the bitmap isn't compressed and set the BI_RGB flag. */
|
||||||
lpBmiH->biCompression = BI_RGB;
|
lpBmiH->biCompression = BI_RGB;
|
||||||
lpBmiH->biSizeImage = bitsSize;
|
lpBmiH->biSizeImage = bitsSize;
|
||||||
lpBmiH->biYPelsPerMeter = /* 1 meter = 39.37 inch */
|
lpBmiH->biYPelsPerMeter = 0;
|
||||||
MulDiv(GetDeviceCaps(physDevSrc->hdc,LOGPIXELSX),3937,100);
|
lpBmiH->biXPelsPerMeter = 0;
|
||||||
lpBmiH->biXPelsPerMeter =
|
|
||||||
MulDiv(GetDeviceCaps(physDevSrc->hdc,LOGPIXELSY),3937,100);
|
|
||||||
lpBmiH->biClrUsed = nBPP <= 8 ? 1 << nBPP : 0;
|
lpBmiH->biClrUsed = nBPP <= 8 ? 1 << nBPP : 0;
|
||||||
/* Set biClrImportant to 0, indicating that all of the
|
/* Set biClrImportant to 0, indicating that all of the
|
||||||
device colors are important. */
|
device colors are important. */
|
||||||
|
|
Loading…
Reference in New Issue