Huw Davies : wineps.drv: MM_ISOTROPIC and MM_ANISOTROPIC should also have inverted y-transforms ( even if the page -> device mapping results in a negative y-scale).

Alexandre Julliard julliard at winehq.org
Wed Apr 28 16:35:48 CDT 2010


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Apr 28 15:05:02 2010 +0100

wineps.drv: MM_ISOTROPIC and MM_ANISOTROPIC should also have inverted y-transforms (even if the page -> device mapping results in a negative y-scale).

---

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

diff --git a/dlls/wineps.drv/download.c b/dlls/wineps.drv/download.c
index 8be03c9..9ad8a2c 100644
--- a/dlls/wineps.drv/download.c
+++ b/dlls/wineps.drv/download.c
@@ -276,8 +276,11 @@ BOOL PSDRV_WriteSetDownloadFont(PSDRV_PDEVICE *physDev)
     physDev->font.size.yx = ps_round(ppem * xform.eM21);
     physDev->font.size.yy = ps_round(ppem * xform.eM22);
 
-    if(GetMapMode(physDev->hdc) == MM_TEXT)
+    switch(GetMapMode(physDev->hdc))
     {
+    case MM_TEXT:
+    case MM_ISOTROPIC:
+    case MM_ANISOTROPIC:
         physDev->font.size.yx *= -1;
         physDev->font.size.yy *= -1;
     }




More information about the wine-cvs mailing list