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)