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

View File

@@ -37,18 +37,3 @@ wxScreenDC::wxScreenDC()
::SetBkMode( GetHdc(), TRANSPARENT ); ::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;
}