]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/rotate/rotate.cpp
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / samples / rotate / rotate.cpp
index 7313f50ec8df16395967b6f481fda7a2c66ac803..3b48a063ab2c9e089f57caa6284d0d3fc49f9d4f 100644 (file)
@@ -153,7 +153,7 @@ bool MyApp::OnInit()
 // ----------------------------------------------------------------------------
 
 #include "wx/arrimpl.cpp"
-WX_DEFINE_OBJARRAY(ArrayOfImages);
+WX_DEFINE_OBJARRAY(ArrayOfImages)
 
 // ----------------------------------------------------------------------------
 // custom canvas control that we can draw on
@@ -213,7 +213,6 @@ void MyCanvas::OnPaint (wxPaintEvent &)
     size_t numImages = m_images.GetCount();
 
     wxPaintDC dc(this);
-    dc.BeginDrawing();
 
     dc.SetTextForeground(wxColour(255, 255, 255));
     dc.DrawText(wxT("Click on the canvas to draw a duck."), 10, 10);
@@ -222,8 +221,6 @@ void MyCanvas::OnPaint (wxPaintEvent &)
         MyRenderedImage & image = m_images.Item(i);
         dc.DrawBitmap(image.m_bmp, image.m_x, image.m_y, true);
     }
-
-    dc.EndDrawing();
 }
 
 // ----------------------------------------------------------------------------