]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/gizmos/statpict.cpp
Remove wxHVScrolledWindow wrappers
[wxWidgets.git] / contrib / src / gizmos / statpict.cpp
index 62a51d123b3e2aeba4bd2684878ee43907c475c9..a6fd9f768eaec819706f88adddd6f2a59bd21076 100644 (file)
@@ -9,10 +9,6 @@
 // Licence:       wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // Licence:       wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
-  #pragma implementation "statpict.h"
-#endif
-
 #include "wx/wxprec.h"
 #include "wx/defs.h"
 
 #include "wx/wxprec.h"
 #include "wx/defs.h"
 
@@ -93,7 +89,6 @@ void wxStaticPicture::OnPaint(wxPaintEvent& WXUNUSED(event))
 
     wxPaintDC dc( this );
     PrepareDC( dc );
 
     wxPaintDC dc( this );
     PrepareDC( dc );
-    dc.BeginDrawing();
 
     wxSize sz = GetSize();
     wxSize bmpsz( Bitmap.GetWidth(), Bitmap.GetHeight() );
 
     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 );
     }
     else
         dc.DrawBitmap( Bitmap, pos.x, pos.y );
-
-    dc.EndDrawing();
 }
 
 }