X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fea5f26d46f7ee211f34908d82828133caaedb6..f5766910b6731eb03e82371416e9778203396ce7:/samples/rotate/rotate.cpp?ds=sidebyside diff --git a/samples/rotate/rotate.cpp b/samples/rotate/rotate.cpp index 7313f50ec8..3b48a063ab 100644 --- a/samples/rotate/rotate.cpp +++ b/samples/rotate/rotate.cpp @@ -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(); } // ----------------------------------------------------------------------------