fix metrics sometime accessed too early
This commit is contained in:
@@ -156,7 +156,9 @@ Dialog::Result DialogDriver_Win32::AbortRetryIgnore( CString sMessage, CString I
|
|||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, WINDOW_TITLE.GetValue(), MB_ABORTRETRYIGNORE|MB_DEFBUTTON3 ) )
|
CString sWindowTitle = WINDOW_TITLE.IsLoaded() ? WINDOW_TITLE.GetValue() : "";
|
||||||
|
|
||||||
|
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, sWindowTitle, MB_ABORTRETRYIGNORE|MB_DEFBUTTON3 ) )
|
||||||
{
|
{
|
||||||
case IDABORT: return Dialog::abort;
|
case IDABORT: return Dialog::abort;
|
||||||
case IDRETRY: return Dialog::retry;
|
case IDRETRY: return Dialog::retry;
|
||||||
@@ -171,7 +173,9 @@ Dialog::Result DialogDriver_Win32::AbortRetry( CString sMessage, CString ID )
|
|||||||
SDL_PumpEvents();
|
SDL_PumpEvents();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, WINDOW_TITLE.GetValue(), MB_RETRYCANCEL ) )
|
CString sWindowTitle = WINDOW_TITLE.IsLoaded() ? WINDOW_TITLE.GetValue() : "";
|
||||||
|
|
||||||
|
switch( MessageBox(GraphicsWindow::GetHwnd(), sMessage, sWindowTitle, MB_RETRYCANCEL ) )
|
||||||
{
|
{
|
||||||
case IDRETRY: return Dialog::retry;
|
case IDRETRY: return Dialog::retry;
|
||||||
default: ASSERT(0);
|
default: ASSERT(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user