X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0f09a2e88168989a36c53e95ed225e2cf3f9ff0..53a240f02bd45da218f46a43db81207a100f83ec:/src/generic/splash.cpp diff --git a/src/generic/splash.cpp b/src/generic/splash.cpp index 54c8982dc9..1f7932c5a6 100644 --- a/src/generic/splash.cpp +++ b/src/generic/splash.cpp @@ -48,8 +48,9 @@ wxSplashScreen::wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int mil // For some reason, we need to make the client size a couple of pixels // bigger for all of the bitmap to show. + // Or do we? #ifdef __WXMSW__ - int fudge = 2; + int fudge = 0; #else int fudge = 0; #endif @@ -78,8 +79,7 @@ wxSplashScreen::~wxSplashScreen() void wxSplashScreen::OnNotify(wxTimerEvent& event) { - m_timer.Stop(); - this->Destroy(); + Close(TRUE); } void wxSplashScreen::OnCloseWindow(wxCloseEvent& event)