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