fixed bitmap constructor for monochrome bitmaps

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-04-21 12:35:02 +00:00
parent 7ddb3812fd
commit eefa26bed1
3 changed files with 35 additions and 12 deletions

View File

@@ -143,6 +143,9 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
dc.DrawText( "Loaded image", 30, 10 );
if (my_square && my_square->Ok()) dc.DrawBitmap( *my_square, 30, 30 );
wxBitmap bm( 1200, 1, 1 );
dc.DrawBitmap( bm, 10, 10 );
dc.DrawText( "Drawn directly", 150, 10 );
dc.SetBrush( wxBrush( "orange", wxSOLID ) );