]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
Set initial window size as its minimal size.
[wxWidgets.git] / src / generic / graphicc.cpp
index 1634379aeebdef25221425bb9b9b10aae3ae3b2f..0cc09b67517f8ee711e8589e18828f2cf5978cc8 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/cairo.h"
+#if wxUSE_GRAPHICS_CONTEXT
+
 #include "wx/graphics.h"
 
-#if wxUSE_GRAPHICS_CONTEXT && wxUSE_CAIRO
+#if wxUSE_CAIRO
+
+#include "wx/cairo.h"
 
 #ifndef WX_PRECOMP
     #include "wx/bitmap.h"
@@ -1799,10 +1802,10 @@ wxGraphicsContext * wxCairoRenderer::CreateContext( const wxPrinterDC& dc)
 
 wxGraphicsContext * wxCairoRenderer::CreateContextFromNativeContext( void * context )
 {
-#if __WXMSW__
+#ifdef __WXMSW__
     return new wxCairoContext(this,(HDC)context);
 #endif
-#if __WXGTK__
+#ifdef __WXGTK__
     return new wxCairoContext(this,(cairo_t*)context);
 #endif
 }
@@ -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