gdi32: Make sure that World2Vport DC transformation is valid before using it.

This commit is contained in:
Dmitry Timoshkov 2009-02-05 16:41:29 +08:00 committed by Alexandre Julliard
parent 540f11f6d6
commit 5804470f26
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}