X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..90f501b16e1b6dcc9e2aae6a413287a22842da61:/src/msw/dcclient.cpp diff --git a/src/msw/dcclient.cpp b/src/msw/dcclient.cpp index d853cf580e..6d5df17f48 100644 --- a/src/msw/dcclient.cpp +++ b/src/msw/dcclient.cpp @@ -113,6 +113,11 @@ void wxWindowDC::InitDC() // default bg colour is pne of the window SetBackground(wxBrush(m_canvas->GetBackgroundColour(), wxSOLID)); + + // since we are a window dc we need to grab the palette from the window +#if wxUSE_PALETTE + InitializePalette(); +#endif } // ----------------------------------------------------------------------------