]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/threadpsx.cpp
(dirty) fix rendering upon startup of the surface
[wxWidgets.git] / src / unix / threadpsx.cpp
index 9e8e6d1165e3c014db94f4711a112d19f53c7da8..2775f9576e9c445ef2cf70b1ab05759ab678d650 100644 (file)
@@ -720,7 +720,7 @@ public:
     wxThreadState GetState() const { return m_state; }
     void SetState(wxThreadState state)
     {
-#ifdef __WXDEBUG__
+#if wxUSE_LOG_TRACE
         static const wxChar *stateNames[] =
         {
             _T("NEW"),
@@ -731,7 +731,7 @@ public:
 
         wxLogTrace(TRACE_THREADS, _T("Thread %p: %s => %s."),
                    GetId(), stateNames[m_state], stateNames[state]);
-#endif // __WXDEBUG__
+#endif // wxUSE_LOG_TRACE
 
         m_state = state;
     }