]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed typo in cache management code
authorJulian Smart <julian@anthemion.co.uk>
Fri, 13 Jul 2001 14:21:42 +0000 (14:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 13 Jul 2001 14:21:42 +0000 (14:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/app.cpp

index 7c9aa3741f93799b8a4027bf12e426c1f1377c4b..f542a094a837011eef29159625ce8b233e3877eb 100644 (file)
@@ -1116,7 +1116,7 @@ void wxApp::OnIdle(wxIdleEvent& event)
     // automated DC cache management: clear the cached DCs and bitmap
     // if it's likely that the app has finished with them, that is, we
     // get an idle event and we're not dragging anything.
-    if (!::GetKeyState(MK_LBUTTON) && !::GetKeyState(MK_MBUTTON) && ::GetKeyState(MK_RBUTTON))
+    if (!::GetKeyState(MK_LBUTTON) && !::GetKeyState(MK_MBUTTON) && !::GetKeyState(MK_RBUTTON))
         wxDC::ClearCache();
 #endif // wxUSE_DC_CACHEING