[aisleriot] Drop obsolete cairo version checks



commit 4ad90910d27436d4b774bc5cc630e2be78ba79fa
Author: Christian Persch <chpe gnome org>
Date:   Mon Apr 11 23:18:46 2011 +0200

    Drop obsolete cairo version checks

 src/lib/ar-card-theme.c |    4 ----
 src/lib/ar-preimage.c   |    4 ----
 2 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/lib/ar-card-theme.c b/src/lib/ar-card-theme.c
index f0e2b35..872df70 100644
--- a/src/lib/ar-card-theme.c
+++ b/src/lib/ar-card-theme.c
@@ -191,11 +191,7 @@ ar_card_theme_class_real_get_card_pixbuf (ArCardTheme *card_theme,
 
   ar_card_theme_get_size (card_theme, &card_size);
 
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE (1, 6, 0)
   rowstride = cairo_format_stride_for_width (CAIRO_FORMAT_ARGB32, card_size.width);
-#else
-  rowstride = card_size.width * 4;
-#endif
 
   data = g_try_malloc0 (rowstride * card_size.height);
   if (!data)
diff --git a/src/lib/ar-preimage.c b/src/lib/ar-preimage.c
index 49bc9a1..15afa01 100644
--- a/src/lib/ar-preimage.c
+++ b/src/lib/ar-preimage.c
@@ -298,11 +298,7 @@ ar_preimage_render_sub (ArPreimage * preimage,
   if (!preimage->scalable)
     return NULL;
 
-#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE (1, 6, 0)
   rowstride = cairo_format_stride_for_width (CAIRO_FORMAT_ARGB32, width);
-#else
-  rowstride = width * 4;
-#endif
 
   data = g_try_malloc0 (rowstride * height);
   if (!data)



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