]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't draw the mysterious black rectangle in the erase sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Mar 2011 22:33:16 +0000 (22:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 20 Mar 2011 22:33:16 +0000 (22:33 +0000)
The black rectangle drawn in EVT_PAINT handler in the sample prevented the
custom background from showing through the wxStaticBitmap. Maybe it was
initially done intentionally but this makes the sample look broken so just
don't do this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/erase/erase.cpp

index d35028c06f5e2138ce1b69b50c683bc9c997e743..5ca9cdb0f42b55f4eaacb231fe1f18b874f7f825 100644 (file)
@@ -346,7 +346,6 @@ void MyCanvas::DoPaint(wxDC& dc)
     }
 
     dc.SetBrush( *wxBLACK_BRUSH );
-    dc.DrawRectangle( 10,10,60,50 );
 
     dc.DrawBitmap( m_bitmap, 20, 20, true );