From 82cf15a4d43b1db7106641aaa544efdcdfd48302 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Apr 2002 13:28:08 +0000 Subject: [PATCH] removed a wxPaintDC::Clear() fatal to wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dnd/dnd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.47.2