From: Robert Roebling Date: Fri, 25 Apr 2008 17:20:02 +0000 (+0000) Subject: Fix linking problem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/772f15b4d744875a969a03f5fa8419c7681d9b2f Fix linking problem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/graphcmn.cpp b/src/common/graphcmn.cpp index 699929b060..3b3c05d9d2 100644 --- a/src/common/graphcmn.cpp +++ b/src/common/graphcmn.cpp @@ -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)