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.
This commit is contained in:
Dmitry Timoshkov 2006-04-03 21:33:15 +09:00 committed by Alexandre Julliard
parent fc13420770
commit fd2ed6fffe
1 changed files with 2 additions and 2 deletions

View File

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