summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2010-01-03 18:22:55 +0900
committerHiroyuki Ikezoe <poincare@ikezoe.net>2010-01-03 18:22:55 +0900
commit23042427f54b19059e1e9fff1296e36b975e1639 (patch)
treecb20cef1d49128f93de3733bf4cc18d7df02fd43
parent23a5381cbadab6ae79dfb896699fd7ab2566c01b (diff)
downloadgtk+-23042427f54b19059e1e9fff1296e36b975e1639.tar.gz
Use CAIRO_VERSION instead of CAIRO_VERSION_CODE
Cairo does not have CAIRO_VERSION_CODE macro. Fix for bug #605472.
-rw-r--r--gdk/directfb/gdkdrawable-directfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/directfb/gdkdrawable-directfb.c b/gdk/directfb/gdkdrawable-directfb.c
index 9fdad15028..3406f08ce1 100644
--- a/gdk/directfb/gdkdrawable-directfb.c
+++ b/gdk/directfb/gdkdrawable-directfb.c
@@ -1642,7 +1642,7 @@ gdk_directfb_ref_cairo_surface (GdkDrawable *drawable)
if (!impl->cairo_surface) {
IDirectFBSurface *surface;
g_assert (impl->surface != NULL);
-#if defined(CAIRO_VERSION_CODE) && CAIRO_VERSION_CODE >= CAIRO_VERSION_ENCODE(1,5,5)
+#if defined(CAIRO_VERSION) && CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,5,5)
impl->surface->GetSubSurface (impl->surface, NULL, &surface);
#else
surface = impl->surface;
@@ -1654,7 +1654,7 @@ gdk_directfb_ref_cairo_surface (GdkDrawable *drawable)
&gdk_directfb_cairo_key, drawable,
gdk_directfb_cairo_surface_destroy);
}
-#if defined(CAIRO_VERSION_CODE) && CAIRO_VERSION_CODE >= CAIRO_VERSION_ENCODE(1,5,5)
+#if defined(CAIRO_VERSION) && CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,5,5)
surface->Release (surface);
#endif
}