[Wine-devel] gdi32: OUT_TT_ONLY_PRECIS flag support

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Май 23 17:57:50 MSD 2008


----------- следующая часть -----------
From 5a63164c48dd6dc0ec42138636acfe59d54d5375 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 23 May 2008 17:45:47 +0400
Subject: [PATCH] OUT_TT_ONLY_PRECIS flag support

---
 dlls/gdi32/freetype.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 835959b..a66e15d 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3137,7 +3137,7 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
     INT height, width = 0;
     unsigned int score = 0, new_score;
     signed int diff = 0, newdiff;
-    BOOL bd, it, can_use_bitmap;
+    BOOL bd, it, can_use_bitmap = 0;
     LOGFONTW lf;
     CHARSETINFO csi;
     HFONTLIST *hflist;
@@ -3162,7 +3162,8 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
     }
     lf.lfWidth = abs(lf.lfWidth);
 
-    can_use_bitmap = GetDeviceCaps(dc->hSelf, TEXTCAPS) & TC_RA_ABLE;
+    if (lf.lfOutPrecision != OUT_TT_ONLY_PRECIS)
+        can_use_bitmap = GetDeviceCaps(dc->hSelf, TEXTCAPS) & TC_RA_ABLE;
 
     TRACE("%s, h=%d, it=%d, weight=%d, PandF=%02x, charset=%d orient %d escapement %d\n",
 	  debugstr_w(lf.lfFaceName), lf.lfHeight, lf.lfItalic,
-- 
1.5.4.5.GIT



Подробная информация о списке рассылки Wine-devel