Move WineEngInit call before stock fonts creation

Dmitry Timoshkov dmitry at codeweavers.com
Mon Apr 3 07:33:15 CDT 2006


Hello,

Changelog:
    Move WineEngInit call before stock fonts creation, otherwise we end up
    caching wrong fonts before loading built-in bitmap fonts.

--- cvs/hq/wine/dlls/gdi/gdiobj.c	2006-02-18 09:39:48.000000000 +0800
+++ wine/dlls/gdi/gdiobj.c	2006-04-03 19:56:38.000000000 +0900
@@ -584,6 +584,8 @@ BOOL GDI_Init(void)
     const struct DefaultFontInfo* deffonts;
     int i;
 
+    WineEngInit();
+
     /* create stock objects */
     stock_objects[WHITE_BRUSH]  = CreateBrushIndirect( &WhiteBrush );
     stock_objects[LTGRAY_BRUSH] = CreateBrushIndirect( &LtGrayBrush );
@@ -631,8 +633,6 @@ BOOL GDI_Init(void)
         __wine_make_gdi_object_system( stock_objects[i], TRUE );
     }
 
-    WineEngInit();
-
     return TRUE;
 }
 





More information about the wine-patches mailing list