[gnome-games] aisleriot: Fix thinko



commit 45fcb8e137ff879a9903168b3ec104f644b9c0cf
Author: Christian Persch <chpe gnome org>
Date:   Fri Aug 13 14:00:59 2010 +0200

    aisleriot: Fix thinko

 aisleriot/lib/ar-card-surface-cache.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/aisleriot/lib/ar-card-surface-cache.c b/aisleriot/lib/ar-card-surface-cache.c
index 22d0c36..3fa133f 100644
--- a/aisleriot/lib/ar-card-surface-cache.c
+++ b/aisleriot/lib/ar-card-surface-cache.c
@@ -330,16 +330,15 @@ ar_card_surface_cache_get_card_surface_by_id (ArCardSurfaceCache *cache,
     ar_card_theme_get_size (priv->theme, &card_size);
 
 #if GTK_CHECK_VERSION (2, 21, 6)
-    if (priv->drawable) {
+    if (priv->drawable != NULL) {
       surface = gdk_window_create_similar_surface (priv->drawable, CAIRO_CONTENT_COLOR_ALPHA,
                                                    card_size.width, card_size.height);
     } else
-#else
+#endif /* GTK 2.21.6 */
     {
       surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
                                             card_size.width, card_size.height);
     }
-#endif /* GTK 2.21.6 */
 
     cr = cairo_create (surface);
     ar_card_theme_paint_card (priv->theme, cr, card_id);



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