X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25466131acbbca2186d01fb852d61f50ba968fb4..ac22204b1b6013f7e53951835d2dc9168eaa004c:/src/msw/ownerdrw.cpp?ds=sidebyside diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index e30c64687e..ffda6982b5 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -26,11 +26,11 @@ #include "wx/utils.h" #include "wx/settings.h" #include "wx/menuitem.h" + #include "wx/module.h" #endif #include "wx/ownerdrw.h" #include "wx/fontutil.h" -#include "wx/module.h" #if wxUSE_OWNER_DRAWN @@ -429,7 +429,7 @@ bool wxOwnerDrawn::OnDrawItem(wxDC& dc, if ( bmp.Ok() ) { wxMemoryDC dcMem(&dc); - dcMem.SelectObject(bmp); + dcMem.SelectObjectAsSource(bmp); // center bitmap int nBmpWidth = bmp.GetWidth(),