X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eddec696f06d65a80e7339b2fae14fcb55f8383..7bb82a7415a0fae8b691611665593e8550a7bcf7:/src/msw/ownerdrw.cpp diff --git a/src/msw/ownerdrw.cpp b/src/msw/ownerdrw.cpp index 94eca7820c..ffda6982b5 100644 --- a/src/msw/ownerdrw.cpp +++ b/src/msw/ownerdrw.cpp @@ -25,12 +25,12 @@ #include "wx/menu.h" #include "wx/utils.h" #include "wx/settings.h" + #include "wx/menuitem.h" + #include "wx/module.h" #endif #include "wx/ownerdrw.h" -#include "wx/menuitem.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(),