X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ced3df773028534651ef358ae692affdbf3f9aaf..c6cf894ae2dc66126724a9aee8ba5c62f4d9572a:/include/wx/cairo.h

diff --git a/include/wx/cairo.h b/include/wx/cairo.h
index 2135ea932f..acb961c83f 100644
--- a/include/wx/cairo.h
+++ b/include/wx/cairo.h
@@ -11,9 +11,13 @@
 #ifndef _WX_CAIRO_H_BASE_
 #define _WX_CAIRO_H_BASE_
 
- // for now GTK+ only
-#ifdef __WXGTK210__
-  #define wxUSE_CAIRO  1
+// for now GTK+ only
+#ifndef wxUSE_CAIRO
+    #ifdef __WXGTK210__
+        #define wxUSE_CAIRO 1
+    #else
+        #define wxUSE_CAIRO 0
+    #endif
 #endif
 
 #if wxUSE_CAIRO
@@ -98,6 +102,8 @@ public:
         (cairo_pattern_t *pattern, cairo_filter_t filter), (pattern, filter) )
     wxDL_VOIDMETHOD_DEFINE( cairo_rectangle,
         (cairo_t *cr, double x, double y, double width, double height), (cr, x, y, width, height) )
+    wxDL_METHOD_DEFINE( cairo_t*, cairo_reference,
+        (cairo_t *cr), (cr), NULL )
     wxDL_VOIDMETHOD_DEFINE( cairo_reset_clip,
         (cairo_t *cr), (cr) )
     wxDL_VOIDMETHOD_DEFINE( cairo_restore,