X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..d0363d3d2d959f8ad86177de9179a284206ee615:/contrib/src/gizmos/ledctrl.cpp diff --git a/contrib/src/gizmos/ledctrl.cpp b/contrib/src/gizmos/ledctrl.cpp index 0d87f8c1c7..458af3f4cc 100644 --- a/contrib/src/gizmos/ledctrl.cpp +++ b/contrib/src/gizmos/ledctrl.cpp @@ -174,7 +174,6 @@ void wxLEDNumberCtrl::OnPaint(wxPaintEvent &WXUNUSED(event)) wxMemoryDC MemDc; MemDc.SelectObject(*pMemoryBitmap); - MemDc.BeginDrawing(); // Draw background. MemDc.SetBrush(wxBrush(GetBackgroundColour(), wxSOLID)); @@ -241,8 +240,6 @@ void wxLEDNumberCtrl::OnPaint(wxPaintEvent &WXUNUSED(event)) } } - MemDc.EndDrawing(); - // Blit the memory dc to screen. Dc.Blit(0, 0, Width, Height, &MemDc, 0, 0, wxCOPY); delete pMemoryBitmap;