X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63cafd2799b6e9dcbe34ce63635f1f8a807d895f..7be07660b4dec326ec99f84edac9b862ac34d224:/samples/forty/game.cpp?ds=inline diff --git a/samples/forty/game.cpp b/samples/forty/game.cpp index c121d8dd06..90bfc194c0 100644 --- a/samples/forty/game.cpp +++ b/samples/forty/game.cpp @@ -288,11 +288,12 @@ void Game::Redraw(wxDC& dc) // Initialise the card bitmap to the background colour wxMemoryDC memoryDC; - memoryDC.SelectObject(m_bmapCard); + memoryDC.SelectObject(*m_bmapCard); memoryDC.SetBrush(FortyApp::BackgroundBrush()); memoryDC.DrawRectangle(0, 0, CardWidth, CardHeight); - memoryDC.SelectObject(m_bmap); + memoryDC.SelectObject(*m_bmap); memoryDC.DrawRectangle(0, 0, CardWidth, CardHeight); + memoryDC.SelectObject(wxNullBitmap); } }