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:
@@ -960,9 +960,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
|||||||
|
|
||||||
wxBitmap bitmap( 100, 100 );
|
wxBitmap bitmap( 100, 100 );
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
dc.SetBackground(*wxGREEN);
|
|
||||||
dc.SelectObject( bitmap );
|
dc.SelectObject( bitmap );
|
||||||
dc.SetPen(*wxGREEN_PEN);
|
dc.SetBackground(*wxGREEN);
|
||||||
|
dc.SetPen(*wxRED_PEN);
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
dc.DrawEllipse(5, 5, 90, 90);
|
dc.DrawEllipse(5, 5, 90, 90);
|
||||||
dc.DrawText(_T("Bitmap"), 30, 40);
|
dc.DrawText(_T("Bitmap"), 30, 40);
|
||||||
|
Reference in New Issue
Block a user