X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..9f556d1dd6a06524c0d5419862836b9f0e9e6e1d:/contrib/src/gizmos/statpict.cpp diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index f6b97869df..b8c1cdf99d 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -67,7 +67,7 @@ bool wxStaticPicture::Create(wxWindow *parent, wxWindowID id, bool ret = wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ); - SetBestSize( size ) ; + SetInitialSize( size ) ; return ret; } @@ -89,7 +89,6 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event)) wxPaintDC dc( this ); PrepareDC( dc ); - dc.BeginDrawing(); wxSize sz = GetSize(); wxSize bmpsz( Bitmap.GetWidth(), Bitmap.GetHeight() ); @@ -145,7 +144,5 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event)) } else dc.DrawBitmap( Bitmap, pos.x, pos.y ); - - dc.EndDrawing(); }