X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6460682a21a5f58ff7914676fd80b0730803398..399b60a0ad232265cd74ce8bf6a53a1f2cc57ff2:/src/stubs/dcclient.cpp diff --git a/src/stubs/dcclient.cpp b/src/stubs/dcclient.cpp index 4ba48ce40b..4962885bf9 100644 --- a/src/stubs/dcclient.cpp +++ b/src/stubs/dcclient.cpp @@ -15,6 +15,7 @@ #include "wx/dcclient.h" #include "wx/dcmemory.h" +#include "wx/region.h" #include //----------------------------------------------------------------------------- @@ -27,11 +28,9 @@ // wxPaintDC //----------------------------------------------------------------------------- -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC) IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC) IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxWindowDC) -#endif /* * wxWindowDC @@ -50,7 +49,7 @@ wxWindowDC::~wxWindowDC(void) }; void wxWindowDC::FloodFill( long WXUNUSED(x1), long WXUNUSED(y1), - wxColour* WXUNUSED(col), int WXUNUSED(style) ) + const wxColour& WXUNUSED(col), int WXUNUSED(style) ) { }; @@ -448,9 +447,20 @@ void wxWindowDC::SetPalette( const wxPalette& WXUNUSED(palette) ) void wxWindowDC::SetClippingRegion( long x, long y, long width, long height ) { wxDC::SetClippingRegion( x, y, width, height ); + + // TODO }; +void wxWindowDC::SetClippingRegion( const wxRegion& region ) +{ + wxRect box = region.GetBox(); + + wxDC::SetClippingRegion( box.x, box.y, box.width, box.height ); + + // TODO +} + void wxWindowDC::DestroyClippingRegion(void) { wxDC::DestroyClippingRegion();