]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/dcscreen.h
destroy m_impl even if an exception is thrown from the main loop
[wxWidgets.git] / include / wx / mac / carbon / dcscreen.h
index c1da01e7eff043bd0338028d38e98e95dd0f12ad..052f5fb7b857ab1ee4669fbd6ebf8e3b7824dd60 100644 (file)
@@ -21,13 +21,17 @@ class WXDLLEXPORT wxScreenDC: public wxWindowDC
  public:
   // Create a DC representing the whole screen
   wxScreenDC();
  public:
   // Create a DC representing the whole screen
   wxScreenDC();
-  ~wxScreenDC();
+  virtual ~wxScreenDC();
 
   // Compatibility with X's requirements for
   // drawing on top of all windows
   static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return TRUE; }
   static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return TRUE; }
   static bool EndDrawingOnTop() { return TRUE; }
 
   // Compatibility with X's requirements for
   // drawing on top of all windows
   static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return TRUE; }
   static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return TRUE; }
   static bool EndDrawingOnTop() { return TRUE; }
+ private:
+#if wxMAC_USE_CORE_GRAPHICS
+       void* m_overlayWindow;
+#endif
 };
 
 #endif
 };
 
 #endif