removed a wxPaintDC::Clear() fatal to wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user