]> git.saurik.com Git - wxWidgets.git/commitdiff
removed a wxPaintDC::Clear() fatal to wxGTK
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Apr 2002 13:28:08 +0000 (13:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Apr 2002 13:28:08 +0000 (13:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dnd/dnd.cpp

index 7788cfdc7dc568047e43aa5633156ada8090e1eb..5815dd45abf7f7341a3b8dde91978ba247e3a193 100644 (file)
@@ -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 );
 }