]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix linking problem
authorRobert Roebling <robert@roebling.de>
Fri, 25 Apr 2008 17:20:02 +0000 (17:20 +0000)
committerRobert Roebling <robert@roebling.de>
Fri, 25 Apr 2008 17:20:02 +0000 (17:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/graphcmn.cpp

index 699929b060a67164d47a377af1b370a1c77adef9..3b3c05d9d2d67be959c261f4def32b297150d57f 100644 (file)
@@ -774,12 +774,20 @@ wxGraphicsFont wxGraphicsContext::CreateFont( const wxFont &font , const wxColou
 
 wxGraphicsBitmap wxGraphicsContext::CreateBitmap( const wxBitmap& bmp ) const
 {
+#ifndef __WXGTK20__
     return GetRenderer()->CreateBitmap(bmp);
+#else
+    return wxNullGraphicsBitmap;
+#endif
 }
 
 wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h   ) const
 {
+#ifndef __WXGTK20__
     return GetRenderer()->CreateSubBitmap(bmp,x,y,w,h);
+#else
+    return wxNullGraphicsBitmap;
+#endif
 }
 
 wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc)