use wxMemoryDC::SelectObjectAsSource() for const wxBitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -647,7 +647,7 @@ bool wxMGLBitmapHandler::SaveFile(const wxBitmap *bitmap, const wxString& name,
|
||||
int w = bitmap->GetWidth(),
|
||||
h = bitmap->GetHeight();
|
||||
|
||||
mem.SelectObject(*bitmap);
|
||||
mem.SelectObjectAsSource(*bitmap);
|
||||
tdc = mem.GetMGLDC();
|
||||
|
||||
switch (type)
|
||||
|
||||
Reference in New Issue
Block a user