X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/934b2e18c52dcf5d4a434a6e67ac1bc5b3dacf35..5807e60c2ab2b74109fd1149252783fefa16522b:/contrib/src/gizmos/statpict.cpp diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 62a51d123b..b8c1cdf99d 100644 --- a/contrib/src/gizmos/statpict.cpp +++ b/contrib/src/gizmos/statpict.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ - #pragma implementation "statpict.h" -#endif - #include "wx/wxprec.h" #include "wx/defs.h" @@ -71,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; } @@ -93,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() ); @@ -149,7 +144,5 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event)) } else dc.DrawBitmap( Bitmap, pos.x, pos.y ); - - dc.EndDrawing(); }