GetPixel and FloodFill (in this case) not supported by CoreGraphics
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -513,12 +513,17 @@ void MyCanvas::DrawDefault(wxDC& dc)
|
|||||||
// mark the origin
|
// mark the origin
|
||||||
dc.DrawCircle(0, 0, 10);
|
dc.DrawCircle(0, 0, 10);
|
||||||
|
|
||||||
|
#if !wxMAC_USE_CORE_GRAPHICS
|
||||||
|
// GetPixel and FloodFill not supported by Mac OS X CoreGraphics
|
||||||
|
// (FloodFill uses Blit from a non-wxMemoryDC)
|
||||||
//flood fill using brush, starting at 1,1 and replacing whatever colour we find there
|
//flood fill using brush, starting at 1,1 and replacing whatever colour we find there
|
||||||
dc.SetBrush(wxBrush(wxColour(128,128,0), wxSOLID));
|
dc.SetBrush(wxBrush(wxColour(128,128,0), wxSOLID));
|
||||||
|
|
||||||
wxColour tmpColour ;
|
wxColour tmpColour ;
|
||||||
dc.GetPixel(1,1, &tmpColour);
|
dc.GetPixel(1,1, &tmpColour);
|
||||||
dc.FloodFill(1,1, tmpColour, wxFLOOD_SURFACE);
|
dc.FloodFill(1,1, tmpColour, wxFLOOD_SURFACE);
|
||||||
|
#endif
|
||||||
|
|
||||||
dc.DrawCheckMark(5, 80, 15, 15);
|
dc.DrawCheckMark(5, 80, 15, 15);
|
||||||
dc.DrawCheckMark(25, 80, 30, 30);
|
dc.DrawCheckMark(25, 80, 30, 30);
|
||||||
dc.DrawCheckMark(60, 80, 60, 60);
|
dc.DrawCheckMark(60, 80, 60, 60);
|
||||||
|
Reference in New Issue
Block a user