Dmitry Timoshkov : gdi32: Make sure that World2Vport DC transformation is valid before using it.
Alexandre Julliard
julliard at winehq.org
Thu Feb 5 09:21:12 CST 2009
Module: wine
Branch: master
Commit: 5804470f26fc338f7b68864dcdaf4b7f16c61a4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5804470f26fc338f7b68864dcdaf4b7f16c61a4f
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Thu Feb 5 16:41:29 2009 +0800
gdi32: Make sure that World2Vport DC transformation is valid before using it.
---
dlls/gdi32/freetype.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index bad2705..34e4aed 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3333,7 +3333,7 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
{
/* Windows 3.1 compatibility mode GM_COMPATIBLE has only limited
font scaling abilities. */
- dcmat.eM11 = dcmat.eM22 = fabs(dc->xformWorld2Vport.eM22);
+ dcmat.eM11 = dcmat.eM22 = dc->vport2WorldValid ? fabs(dc->xformWorld2Vport.eM22) : 1.0;
dcmat.eM21 = dcmat.eM12 = 0;
}
More information about the wine-cvs
mailing list