From 699fc85a67014c8193e03d841927a2951556a195 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Sun, 3 Jan 2010 18:22:55 +0900 Subject: [PATCH] Use CAIRO_VERSION instead of CAIRO_VERSION_CODE Cairo does not have CAIRO_VERSION_CODE macro. Fix for bug #605472. --- gdk/directfb/gdkdrawable-directfb.c | 4 ++-- 1 file 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 }