X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3d7f7703ee16c35dca819794bec8bd730848cd0..8ce0312ea0f0c1981571cc4fff7c063e30d32d3f:/src/cocoa/dcmemory.mm diff --git a/src/cocoa/dcmemory.mm b/src/cocoa/dcmemory.mm index 10b01be3b3..aead8b59e1 100644 --- a/src/cocoa/dcmemory.mm +++ b/src/cocoa/dcmemory.mm @@ -90,10 +90,12 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap ) initWithSize:NSMakeSize(m_selectedBitmap.GetWidth(), m_selectedBitmap.GetHeight())]; [nsimage addRepresentation: const_cast(m_selectedBitmap).GetNSBitmapImageRep()]; + [m_cocoaNSImage lockFocus]; [nsimage drawAtPoint: NSMakePoint(0,0) fromRect: NSMakeRect(0.0,0.0,m_selectedBitmap.GetWidth(),m_selectedBitmap.GetHeight()) operation: NSCompositeCopy fraction: 1.0]; + [m_cocoaNSImage unlockFocus]; [nsimage release]; }