]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
allow setting client size to work properly before window is shown
[wxWidgets.git] / src / generic / graphicc.cpp
index deb1b8b5e84a57c6580b2c0ecb32b349d45f5abe..0cc09b67517f8ee711e8589e18828f2cf5978cc8 100644 (file)
     #pragma hdrstop
 #endif
 
-#if wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO
+#if wxUSE_GRAPHICS_CONTEXT
 
 #include "wx/graphics.h"
+
+#if wxUSE_CAIRO
+
 #include "wx/cairo.h"
 
 #ifndef WX_PRECOMP
@@ -1949,9 +1952,8 @@ wxCairoRenderer::CreateSubBitmap(const wxGraphicsBitmap& WXUNUSED(bitmap),
     return wxNullGraphicsBitmap;
 }
 
-#endif  // wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO
+#endif  // wxUSE_CAIRO
 
-#if wxUSE_GRAPHICS_CONTEXT
 wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer()
 {
 #if wxUSE_CAIRO
@@ -1960,4 +1962,5 @@ wxGraphicsRenderer* wxGraphicsRenderer::GetCairoRenderer()
     return NULL;
 #endif
 }
-#endif
+
+#endif // wxUSE_GRAPHICS_CONTEXT