fix for wxScreenDC::GetSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,7 +27,10 @@ public:
|
|||||||
// Compatibility with X's requirements for drawing on top of all windows
|
// Compatibility with X's requirements for drawing on top of all windows
|
||||||
static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return TRUE; }
|
static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return TRUE; }
|
||||||
static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { 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:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxScreenDC)
|
DECLARE_DYNAMIC_CLASS(wxScreenDC)
|
||||||
|
@@ -29,7 +29,6 @@
|
|||||||
|
|
||||||
#include "wx/dcscreen.h"
|
#include "wx/dcscreen.h"
|
||||||
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
|
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
|
||||||
|
|
||||||
// Create a DC representing the whole screen
|
// Create a DC representing the whole screen
|
||||||
@@ -42,3 +41,10 @@ wxScreenDC::wxScreenDC()
|
|||||||
::SetBkMode( GetHdc(), TRANSPARENT );
|
::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);
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user