[gtk+] Use CAIRO_VERSION instead of CAIRO_VERSION_CODE
- From: Hiroyuki Ikezoe <hiikezoe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Use CAIRO_VERSION instead of CAIRO_VERSION_CODE
- Date: Sun, 3 Jan 2010 09:24:06 +0000 (UTC)
commit 23042427f54b19059e1e9fff1296e36b975e1639
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]