fixing c++11 build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -315,7 +315,7 @@ bool wxBitmapRefData::Create(CGImageRef image)
|
||||
m_hasAlpha = true;
|
||||
m_hBitmap = CGBitmapContextCreate((char*) data, m_width, m_height, 8, m_bytesPerRow, wxMacGetGenericRGBColorSpace(), kCGImageAlphaPremultipliedFirst );
|
||||
}
|
||||
CGRect rect = {{0,0},{m_width,m_height}};
|
||||
CGRect rect = CGRectMake(0,0,m_width,m_height);
|
||||
CGContextDrawImage(m_hBitmap, rect, image);
|
||||
|
||||
wxASSERT_MSG( m_hBitmap , wxT("Unable to create CGBitmapContext context") ) ;
|
||||
|
Reference in New Issue
Block a user