]> git.saurik.com Git - wxWidgets.git/commitdiff
image sample fix from 2_4
authorRobert Roebling <robert@roebling.de>
Thu, 9 Oct 2003 20:00:22 +0000 (20:00 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 9 Oct 2003 20:00:22 +0000 (20:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/image/image.cpp

index b5b394ba3e6da17b119892d76669ef19c621aab7..8b45bf81b5a34f140dbf77fc76cfb624925e53de 100644 (file)
@@ -684,7 +684,10 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
     memdc.SetBrush( *wxWHITE_BRUSH );
     memdc.DrawRectangle( 0,0,60,50 );
     memdc.SetTextForeground( *wxBLACK );
+#ifndef __WXGTK20__
+    // I cannot convince GTK2 to draw into mono bitmaps
     memdc.DrawText( _T("Hi!"), 5, 5 );
+#endif
     memdc.SetBrush( *wxBLACK_BRUSH );
     memdc.DrawRectangle( 33,5,20,20 );
     memdc.SetPen( *wxRED_PEN );