X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fc9c1ea77eb02938debb6d4c2bdebd052309cc2..68623b593770cabc5a2de82fd39498a3cbe8126d:/src/generic/graphicc.cpp?ds=sidebyside diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index aa3269a4c8..dd64d2706e 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -363,6 +363,7 @@ public: // gets the matrix of this context virtual wxGraphicsMatrix GetTransform() const; + virtual void DrawBitmap( const wxGraphicsBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h ); virtual void DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h ); virtual void DrawIcon( const wxIcon &icon, wxDouble x, wxDouble y, wxDouble w, wxDouble h ); virtual void PushState(); @@ -1022,7 +1023,7 @@ wxCairoBitmapData::wxCairoBitmapData( wxGraphicsRenderer* renderer, const wxBitm int bh = bmp.GetHeight(); wxBitmap bmpSource = bmp; // we need a non-const instance m_buffer = new unsigned char[bw*bh*4]; - wxUint32* data = (wxUint32*)buffer; + wxUint32* data = (wxUint32*)m_buffer; // Create a surface object and copy the bitmap pixel data to it. if the // image has alpha (or a mask represented as alpha) then we'll use a @@ -1376,7 +1377,7 @@ void wxCairoContext::PopState() void wxCairoContext::DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) { wxGraphicsBitmap bitmap = GetRenderer()->CreateBitmap(bmp); - DrawGraphicsBitmapInternal(bitmap, x, y, w, h); + DrawBitmap(bitmap, x, y, w, h); } @@ -1862,7 +1863,7 @@ wxGraphicsFont wxCairoRenderer::CreateFont( const wxFont &font , const wxColour return wxNullGraphicsFont; } -wxGraphicsBitmap wxGraphicsRenderer::CreateBitmap( const wxBitmap& bmp ) +wxGraphicsBitmap wxCairoRenderer::CreateBitmap( const wxBitmap& bmp ) { if ( bmp.Ok() ) { @@ -1874,7 +1875,7 @@ wxGraphicsBitmap wxGraphicsRenderer::CreateBitmap( const wxBitmap& bmp ) return wxNullGraphicsBitmap; } -wxGraphicsBitmap wxGraphicsRenderer::CreateSubBitmap( const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) +wxGraphicsBitmap wxCairoRenderer::CreateSubBitmap( const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) { wxFAIL_MSG("wxCairoRenderer::CreateSubBitmap is not implemented."); return wxNullGraphicsBitmap;