Start/EndDrawingOnTop are still used under Motif, don't deprecate them

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-12-25 12:52:53 +00:00
parent 7d09b97f53
commit f81dc6e931
2 changed files with 5 additions and 21 deletions

View File

@ -20,12 +20,11 @@ public:
// Create a DC representing the whole screen
wxScreenDC();
// these functions are obsolete and shouldn't be used
// Compatibility with X's requirements for drawing on top of all windows
wxDEPRECATED( static bool StartDrawingOnTop(wxWindow* window) );
wxDEPRECATED( static bool StartDrawingOnTop(wxRect* rect = NULL) );
wxDEPRECATED( static bool EndDrawingOnTop() );
// Compatibility with X's requirements for drawing on top of all windows:
// they don't do anything under MSW
static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return true; }
static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return true; }
static bool EndDrawingOnTop() { return true; }
protected:
virtual void DoGetSize(int *w, int *h) const

View File

@ -37,18 +37,3 @@ wxScreenDC::wxScreenDC()
::SetBkMode( GetHdc(), TRANSPARENT );
}
// deprecated functions
bool wxScreenDC::StartDrawingOnTop(wxWindow* WXUNUSED(window))
{
return true;
}
bool wxScreenDC::StartDrawingOnTop(wxRect* WXUNUSED(rect))
{
return true;
}
bool wxScreenDC::EndDrawingOnTop()
{
return true;
}