From: Vadim Zeitlin Date: Sun, 28 Apr 2002 13:28:08 +0000 (+0000) Subject: removed a wxPaintDC::Clear() fatal to wxGTK X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/82cf15a4d43b1db7106641aaa544efdcdfd48302 removed a wxPaintDC::Clear() fatal to wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dnd/dnd.cpp b/samples/dnd/dnd.cpp index 7788cfdc7d..5815dd45ab 100644 --- a/samples/dnd/dnd.cpp +++ b/samples/dnd/dnd.cpp @@ -1024,7 +1024,7 @@ void DnDFrame::OnPaint(wxPaintEvent& WXUNUSED(event)) GetClientSize( &w, &h ); wxPaintDC dc(this); - dc.Clear(); + // dc.Clear(); -- this kills wxGTK dc.SetFont( wxFont( 24, wxDECORATIVE, wxNORMAL, wxNORMAL, FALSE, "charter" ) ); dc.DrawText( "Drag text from here!", 100, h-50 ); }