[gnome-games] libgames-support: Print the selected card size



commit 4cafcef670057a459188960e04d41f22f7f6eaeb
Author: Christian Persch <chpe gnome org>
Date:   Sun Jul 12 13:26:30 2009 +0200

    libgames-support: Print the selected card size
    
    Add debug printf to show the selected card size.

 libgames-support/games-card-theme-fixed.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgames-support/games-card-theme-fixed.c b/libgames-support/games-card-theme-fixed.c
index 73a19d1..703fe1a 100644
--- a/libgames-support/games-card-theme-fixed.c
+++ b/libgames-support/games-card-theme-fixed.c
@@ -226,6 +226,11 @@ games_card_theme_fixed_set_card_size (GamesCardTheme *card_theme,
 
       theme->size_available = TRUE;
       theme->card_size = size;
+
+      _games_debug_print (GAMES_DEBUG_CARD_THEME,
+                          "Found prerendered card size %dx%d as nearest available size to %dx%d\n",
+                          size.width, size.height, twidth, theight);
+
     } else {
       _games_debug_print (GAMES_DEBUG_CARD_THEME,
                           "No prerendered size available for %d:%d\n",



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