X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad6bd8701eda692b5fcf6f833e041c38756c608a..2645b45a757dfd92214e8a395398982f4d1bb9fd:/src/os2/dc.cpp diff --git a/src/os2/dc.cpp b/src/os2/dc.cpp index 405ab5b9c2..2af455913a 100644 --- a/src/os2/dc.cpp +++ b/src/os2/dc.cpp @@ -1390,11 +1390,11 @@ void wxDC::DoDrawBitmap( // // Need to get a background color for mask blitting // - if (IsKindOf(CLASSINFO(wxPaintDC))) + if (IsKindOf(CLASSINFO(wxWindowDC))) { - wxPaintDC* pPaintDC = wxDynamicCast(this, wxPaintDC); + wxWindowDC* pWindowDC = wxDynamicCast(this, wxWindowDC); - lColor = pPaintDC->m_pCanvas->GetBackgroundColour().GetPixel(); + lColor = pWindowDC->m_pCanvas->GetBackgroundColour().GetPixel(); } else if (GetBrush() != wxNullBrush) lColor = GetBrush().GetColour().GetPixel();