Commit fd2ed6ff authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi: Move WineEngInit call before stock fonts creation.

Move WineEngInit call before stock fonts creation, otherwise we end up caching wrong fonts before loading built-in bitmap fonts.
parent fc134207
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment