Charles Davis : gdi32/enhmfdrv: Don' t fill in the PelsPerMeter fields in the BITMAPINFOHEADER when blitting.

Alexandre Julliard julliard at winehq.org
Mon Nov 23 08:49:55 CST 2009


Module: wine
Branch: master
Commit: d456f99a04e2b0a8c950a377abfe6ce732a23a56
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d456f99a04e2b0a8c950a377abfe6ce732a23a56

Author: Charles Davis <cdavis at mymail.mines.edu>
Date:   Sun Nov 22 13:25:29 2009 -0700

gdi32/enhmfdrv: Don't fill in the PelsPerMeter fields in the BITMAPINFOHEADER when blitting.

---

 dlls/gdi32/enhmfdrv/bitblt.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/gdi32/enhmfdrv/bitblt.c b/dlls/gdi32/enhmfdrv/bitblt.c
index ddb9dd1..9d87c7f 100644
--- a/dlls/gdi32/enhmfdrv/bitblt.c
+++ b/dlls/gdi32/enhmfdrv/bitblt.c
@@ -149,10 +149,8 @@ static BOOL EMFDRV_BitBlockTransfer(
     /* Assume the bitmap isn't compressed and set the BI_RGB flag. */
     lpBmiH->biCompression = BI_RGB;
     lpBmiH->biSizeImage = bitsSize;
-    lpBmiH->biYPelsPerMeter = /* 1 meter  = 39.37 inch */
-        MulDiv(GetDeviceCaps(physDevSrc->hdc,LOGPIXELSX),3937,100);
-    lpBmiH->biXPelsPerMeter = 
-        MulDiv(GetDeviceCaps(physDevSrc->hdc,LOGPIXELSY),3937,100);
+    lpBmiH->biYPelsPerMeter = 0;
+    lpBmiH->biXPelsPerMeter = 0;
     lpBmiH->biClrUsed   = nBPP <= 8 ? 1 << nBPP : 0;
     /* Set biClrImportant to 0, indicating that all of the 
        device colors are important. */




More information about the wine-cvs mailing list