Alexander Kochetkov : wineps.drv: All map modes should have inverted y-transforms.

Alexandre Julliard julliard at winehq.org
Thu Apr 7 07:36:47 CDT 2011


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

Author: Alexander Kochetkov <al.kochet at gmail.com>
Date:   Thu Feb 10 03:08:12 2011 +0300

wineps.drv: All map modes should have inverted y-transforms.
(cherry picked from commit ecde55b7572a9b5c145d3cc3a934ddf99c267ae7)

---

 dlls/wineps.drv/download.c |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/dlls/wineps.drv/download.c b/dlls/wineps.drv/download.c
index 52de752..cc57ae1 100644
--- a/dlls/wineps.drv/download.c
+++ b/dlls/wineps.drv/download.c
@@ -280,17 +280,8 @@ BOOL PSDRV_WriteSetDownloadFont(PSDRV_PDEVICE *physDev)
 
     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);
-    physDev->font.size.yy = ps_round(ppem * xform.eM22);
-
-    switch(GetMapMode(physDev->hdc))
-    {
-    case MM_TEXT:
-    case MM_ISOTROPIC:
-    case MM_ANISOTROPIC:
-        physDev->font.size.yx *= -1;
-        physDev->font.size.yy *= -1;
-    }
+    physDev->font.size.yx = -ps_round(ppem * xform.eM21);
+    physDev->font.size.yy = -ps_round(ppem * xform.eM22);
 
     physDev->font.underlineThickness = potm->otmsUnderscoreSize;
     physDev->font.underlinePosition = potm->otmsUnderscorePosition;




More information about the wine-cvs mailing list