X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6460682a21a5f58ff7914676fd80b0730803398..d3a9f4afd904aa7e58ba065434e7fca3e37f6e01:/src/stubs/dcclient.cpp diff --git a/src/stubs/dcclient.cpp b/src/stubs/dcclient.cpp index 4ba48ce40b..925d9609ee 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 //----------------------------------------------------------------------------- @@ -50,7 +51,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 +449,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();