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:
@@ -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()
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user