X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/934b2e18c52dcf5d4a434a6e67ac1bc5b3dacf35..2890ca155bbe415316a4f689e9ff95c7d3e5431b:/contrib/src/gizmos/statpict.cpp?ds=sidebyside diff --git a/contrib/src/gizmos/statpict.cpp b/contrib/src/gizmos/statpict.cpp index 62a51d123b..a6fd9f768e 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" @@ -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(); }