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:
Vadim Zeitlin 2002-03-05 00:52:01 +00:00
parent ba5aa38cad
commit 41ff8313b8
2 changed files with 11 additions and 2 deletions

View File

@ -27,7 +27,10 @@ public:
// 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)

View File

@ -29,7 +29,6 @@
#include "wx/dcscreen.h"
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
// Create a DC representing the whole screen
@ -42,3 +41,10 @@ wxScreenDC::wxScreenDC()
::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);
}