From b6d00b3b1549011db3e5746ea49cb5e3ab5511ce Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Nov 2013 14:39:13 +0000 Subject: [PATCH] Don't use animations when showing non-visible windows. This is useless anyhow but also results in artefacts when the window becomes visible later. Closes #15643. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 1f0f700a68..b1e1178792 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -675,7 +675,7 @@ wxWindowMSW::MSWShowWithEffect(bool show, unsigned timeout) { #if wxUSE_DYNLIB_CLASS - if ( effect == wxSHOW_EFFECT_NONE ) + if ( effect == wxSHOW_EFFECT_NONE || !IsShownOnScreen() ) return Show(show); if ( !wxWindowBase::Show(show) )