git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14449
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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(void) { return TRUE; }
+ static bool EndDrawingOnTop() { return TRUE; }
+
+protected:
+ virtual void DoGetSize(int *width, int *height) const;
private:
DECLARE_DYNAMIC_CLASS(wxScreenDC)
#include "wx/dcscreen.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
// Create a DC representing the whole screen
::SetBkMode( GetHdc(), TRANSPARENT );
}
+void wxScreenDC::DoGetSize(int *width, int *height) const
+{
+ // skip wxWindowDC version because it doesn't work without a valid m_canvas
+ // (which we don't have)
+ wxDC::DoGetSize(width, height);
+}
+