gdi32: Remove the code which bypasses the DC transformation checks.
Dmitry Timoshkov
dmitry at codeweavers.com
Wed Oct 8 20:23:46 CDT 2008
If it's absolutely required to check the child list first, that should be
done inside of find_in_cache using the same comparisons as done there.
---
dlls/gdi32/freetype.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 145be9b..8807dcc 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3288,17 +3288,6 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
EnterCriticalSection( &freetype_cs );
- LIST_FOR_EACH_ENTRY(ret, &child_font_list, struct tagGdiFont, entry)
- {
- struct list *first_hfont = list_head(&ret->hfontlist);
- hflist = LIST_ENTRY(first_hfont, HFONTLIST, entry);
- if(hflist->hfont == hfont)
- {
- LeaveCriticalSection( &freetype_cs );
- return ret;
- }
- }
-
if (!GetObjectW( hfont, sizeof(lf), &lf ))
{
LeaveCriticalSection( &freetype_cs );
--
1.6.0.2
More information about the wine-patches
mailing list