]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/timer.cpp
make sure we always restore the passed in cg in a paint event
[wxWidgets.git] / src / mac / carbon / timer.cpp
index c17eb429fc7a694927488702df3c135d1b184bd6..3c576d0650f3af02cadce17bfce228dea1ee59b9 100644 (file)
@@ -11,6 +11,8 @@
 
 #include "wx/wxprec.h"
 
+#if wxUSE_TIMER
+
 #ifndef WX_PRECOMP
     #include "wx/dynarray.h"
 #endif
@@ -215,4 +217,7 @@ void wxTimer::Stop()
     wxMacRemoveAllNotifiersForData( wxMacGetNotifierTable(), this );
 }
 
-#endif
+#endif // wxMAC_USE_CARBON_TIMER
+
+#endif // wxUSE_TIMER
+