Backported fixes for updating the splash screen and busy info windows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-03-04 05:14:50 +00:00
parent f34f2e9aef
commit f7c3abb0a2
2 changed files with 5 additions and 1 deletions

View File

@@ -105,9 +105,13 @@ wxBusyInfo::wxBusyInfo(const wxString& message, wxWindow *parent)
{
m_InfoFrame = new wxInfoFrame( parent, message);
m_InfoFrame->Show(TRUE);
#ifdef __WXMAC__
m_InfoFrame->Update();
#else
wxYield();
m_InfoFrame->Refresh();
wxYield();
#endif
}
wxBusyInfo::~wxBusyInfo()

View File

@@ -70,7 +70,7 @@ wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int mil
Show(TRUE);
m_window->SetFocus();
#ifdef __WXMSW__
#if defined(__WXMSW__) || defined(__WXMAC__)
Update(); // Without this, you see a blank screen for an instant
#else
wxYieldIfNeeded(); // Should eliminate this