]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/bitmap.cpp
Don't needlessly indirect through NSNotificationCenter.
[wxWidgets.git] / src / mgl / bitmap.cpp
index d8396837c4da5146624bc10e19b1a5f349eb71e7..1c424417fe79102fbb4ffe0e5853e9a84554a35f 100644 (file)
@@ -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)