From baf84d8710cf0780b1a755e941e772a6a90b716b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 5 Feb 2010 19:03:20 +0000 Subject: [PATCH] Don't include wx/rawbmp.h unnecessary from src/generic/graphicc.cpp. This is not only unneeded but also breaks wxX11 (and probably other ports) compilation because raw bitmap access is not available there. Closes #11700. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/graphicc.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/generic/graphicc.cpp b/src/generic/graphicc.cpp index d15e269505..ead0f25b9b 100644 --- a/src/generic/graphicc.cpp +++ b/src/generic/graphicc.cpp @@ -11,12 +11,12 @@ #include "wx/wxprec.h" -#include "wx/dc.h" - #ifdef __BORLANDC__ #pragma hdrstop #endif +#if wxUSE_GRAPHICS_CONTEXT + #ifndef WX_PRECOMP #include "wx/image.h" #include "wx/window.h" @@ -39,7 +39,7 @@ #include "wx/graphics.h" #include "wx/rawbmp.h" -#if wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO +#if wxUSE_CAIRO #include @@ -215,7 +215,7 @@ public : virtual void Scale( wxDouble xScale , wxDouble yScale ); // add the rotation to this matrix (radians) - virtual void Rotate( wxDouble angle ); + virtual void Rotate( wxDouble angle ); // // apply the transforms @@ -959,7 +959,7 @@ void wxCairoMatrixData::Scale( wxDouble xScale , wxDouble yScale ) void wxCairoMatrixData::Rotate( wxDouble angle ) { cairo_matrix_rotate( &m_matrix, angle) ; -} +} // // apply the transforms @@ -1606,9 +1606,8 @@ wxGraphicsBitmap wxGraphicsRenderer::CreateBitmap( const wxBitmap& bmp ) return wxNullGraphicsBitmap; } -#endif // wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO +#endif // wxUSE_CAIRO -#if wxUSE_GRAPHICS_CONTEXT wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer() { #if wxUSE_CAIRO @@ -1617,4 +1616,5 @@ wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer() return NULL; #endif } -#endif + +#endif // wxUSE_GRAPHICS_CONTEXT