[gtk+/native-layout] Use CAIRO_VERSION instead of CAIRO_VERSION_CODE



commit 699fc85a67014c8193e03d841927a2951556a195
Author: Hiroyuki Ikezoe <poincare ikezoe net>
Date:   Sun Jan 3 18:22:55 2010 +0900

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/directfb/gdkdrawable-directfb.c b/gdk/directfb/gdkdrawable-directfb.c
index 9fdad15..3406f08 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
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]