]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing c++11 build
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 May 2012 09:56:06 +0000 (09:56 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 May 2012 09:56:06 +0000 (09:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/core/bitmap.cpp

index 441a85973763fccdb94d75db6ea853833c112568..8da61b8420172cd66f8cf2973f8a4ae8a9665d9d 100644 (file)
@@ -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") ) ;