X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/97f1fb1987f6eb78bb8cde83b5fa54b7287d72d5..2fe212b0336512aac9eace69fab09ce856b0bf4b:/src/generic/splash.cpp diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index 938f6b78ba..2c0d403645 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -68,7 +68,11 @@ wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int mil Show(TRUE); m_window->SetFocus(); - wxYield(); // Without this, you see a blank screen for an instant +#ifdef __WXMSW__ + Update(); // Without this, you see a blank screen for an instant +#else + wxYieldIfNeeded(); // Should eliminate this +#endif } wxSplashScreen::~wxSplashScreen()