Don't set background of wxMemoryDC before selecting bitmap into it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
134d7051bf
commit
90d05e9b6e
@ -960,9 +960,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
||||
|
||||
wxBitmap bitmap( 100, 100 );
|
||||
wxMemoryDC dc;
|
||||
dc.SetBackground(*wxGREEN);
|
||||
dc.SelectObject( bitmap );
|
||||
dc.SetPen(*wxGREEN_PEN);
|
||||
dc.SetBackground(*wxGREEN);
|
||||
dc.SetPen(*wxRED_PEN);
|
||||
dc.Clear();
|
||||
dc.DrawEllipse(5, 5, 90, 90);
|
||||
dc.DrawText(_T("Bitmap"), 30, 40);
|
||||
|
Loading…
Reference in New Issue
Block a user