don't show strings before we've set up ThemeManager to be able to show something localized

This commit is contained in:
Chris Danford
2006-01-07 06:50:10 +00:00
parent 3a523f9c3e
commit 178e45d380
@@ -103,14 +103,13 @@ void LoadingWindow_Win32::SetIcon( const RageSurface *pIcon )
SetClassLong( hwnd, GCL_HICON, (LONG) m_hIcon ); SetClassLong( hwnd, GCL_HICON, (LONG) m_hIcon );
} }
static LocalizedString ENTER_MAIN_TITLE ("LoadingWindow_Win32","Initializing hardware...");
LoadingWindow_Win32::LoadingWindow_Win32() LoadingWindow_Win32::LoadingWindow_Win32()
{ {
m_hIcon = NULL; m_hIcon = NULL;
hwnd = CreateDialog( handle.Get(), MAKEINTRESOURCE(IDD_LOADING_DIALOG), NULL, WndProc ); hwnd = CreateDialog( handle.Get(), MAKEINTRESOURCE(IDD_LOADING_DIALOG), NULL, WndProc );
for( unsigned i = 0; i < 3; ++i ) for( unsigned i = 0; i < 3; ++i )
text[i] = "ABC"; /* always set on first call */ text[i] = "ABC"; /* always set on first call */
SetText( ENTER_MAIN_TITLE ); SetText( "" );
Paint(); Paint();
} }