]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
Do a little less anti-alias so it looks better on dark backgrounds
[wxWidgets.git] / src / common / appbase.cpp
index ee78eb257c32e94ca252aff8bdde098feb24df2d..3901c4def1ce8bfbd2f94c4e9ae0583ed3a89641 100644 (file)
@@ -269,6 +269,11 @@ wxMessageOutput *wxAppConsole::CreateMessageOutput()
 
 void wxAppConsole::ProcessPendingEvents()
 {
+#if wxUSE_THREADS
+    if ( !wxPendingEventsLocker )
+        return;
+#endif
+    
     // ensure that we're the only thread to modify the pending events list
     wxENTER_CRIT_SECT( *wxPendingEventsLocker );
 
@@ -288,7 +293,9 @@ void wxAppConsole::ProcessPendingEvents()
         // In ProcessPendingEvents(), new handlers might be add
         // and we can safely leave the critical section here.
         wxLEAVE_CRIT_SECT( *wxPendingEventsLocker );
+        
         handler->ProcessPendingEvents();
+
         wxENTER_CRIT_SECT( *wxPendingEventsLocker );
 
         node = wxPendingEvents->GetFirst();