From f7c3abb0a29b40f7e7bffe9fa1d6a4dce304db6d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 4 Mar 2003 05:14:50 +0000 Subject: [PATCH] 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 --- src/generic/busyinfo.cpp | 4 ++++ src/generic/splash.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/generic/busyinfo.cpp b/src/generic/busyinfo.cpp index 830546db0c..e85e99151a 100644 --- a/src/generic/busyinfo.cpp +++ b/src/generic/busyinfo.cpp @@ -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() diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index fa641bdf1e..7f3af1d427 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -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