Avoid deprecation warnings for BeginDrawing and EndDrawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -155,14 +155,14 @@ class pdcBeginDrawingOp : public pdcOp
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
pdcBeginDrawingOp() {}
|
pdcBeginDrawingOp() {}
|
||||||
virtual void DrawToDC(wxDC *dc) {dc->BeginDrawing();}
|
virtual void DrawToDC(wxDC *) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class pdcEndDrawingOp : public pdcOp
|
class pdcEndDrawingOp : public pdcOp
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
pdcEndDrawingOp() {}
|
pdcEndDrawingOp() {}
|
||||||
virtual void DrawToDC(wxDC *dc) {dc->EndDrawing();}
|
virtual void DrawToDC(wxDC *) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class pdcFloodFillOp : public pdcOp
|
class pdcFloodFillOp : public pdcOp
|
||||||
@@ -713,10 +713,10 @@ public:
|
|||||||
|
|
||||||
void Clear()
|
void Clear()
|
||||||
{AddToList(new pdcClearOp());}
|
{AddToList(new pdcClearOp());}
|
||||||
void BeginDrawing()
|
void BeginDrawing()
|
||||||
{AddToList(new pdcBeginDrawingOp());}
|
{AddToList(new pdcBeginDrawingOp());}
|
||||||
void EndDrawing()
|
void EndDrawing()
|
||||||
{AddToList(new pdcEndDrawingOp());}
|
{AddToList(new pdcEndDrawingOp());}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user