wineps.drv: Disable world transform for fonts in GM_COMPATIBLE mode.

Alexander Kochetkov al.kochet at gmail.com
Thu Jan 13 18:29:06 CST 2011


Should fix http://bugs.winehq.org/show_bug.cgi?id=25685

Alexander
-------------- next part --------------
From ecc7642e88a9bf04885dc624bcc4f796c500d7b8 Mon Sep 17 00:00:00 2001
From: Alexander Kochetkov <al.kochet at gmail.com>
Date: Fri, 14 Jan 2011 03:18:19 +0300
Subject: wineps.drv: Disable world transform for fonts in GM_COMPATIBLE mode.

---
 dlls/wineps.drv/download.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/wineps.drv/download.c b/dlls/wineps.drv/download.c
index 9ad8a2c..8e3aba7 100644
--- a/dlls/wineps.drv/download.c
+++ b/dlls/wineps.drv/download.c
@@ -271,6 +271,12 @@ BOOL PSDRV_WriteSetDownloadFont(PSDRV_PDEVICE *physDev)
     /* Retrieve the world -> device transform */
     GetTransform(physDev->hdc, 0x204, &xform);
 
+    if(GetGraphicsMode(physDev->hdc) == GM_COMPATIBLE)
+    {
+        xform.eM11 = xform.eM22 = fabs(xform.eM22);
+        xform.eM21 = xform.eM12 = 0;
+    }
+
     physDev->font.size.xx = ps_round(ppem * xform.eM11);
     physDev->font.size.xy = ps_round(ppem * xform.eM12);
     physDev->font.size.yx = ps_round(ppem * xform.eM21);
-- 
1.7.0.4


More information about the wine-patches mailing list