changeset 33102:de688a61e439

Move debug messages so that they will be processed earlier.
author ib
date Sat, 02 Apr 2011 20:45:43 +0000
parents 930338bde973
children eabc2472e7eb
files gui/skin/skin.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Sat Apr 02 20:24:19 2011 +0000
+++ b/gui/skin/skin.c	Sat Apr 02 20:45:43 2011 +0000
@@ -399,6 +399,10 @@
         return 1;
     }
 
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    button image: %s %d,%d\n", fname, x, y);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]     message: %s (#%d)\n", msg, message);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]     size: %dx%d\n", w, h);
+
     item = next_item();
 
     if (!item)
@@ -413,10 +417,6 @@
     item->pressed = btnReleased;
     item->tmp     = 1;
 
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    button image: %s %d,%d\n", fname, x, y);
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]     message: %s (#%d)\n", msg, message);
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]     size: %dx%d\n", w, h);
-
     if (item->message == evPauseSwitchToPlay)
         item->pressed = btnDisabled;
 
@@ -451,14 +451,14 @@
     if (in_window("playbar"))
         return 1;
 
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    image selected: %s\n", in);
+
     currItem       = &skin->menuSelected;
     currItem->type = itBase;
 
     av_strlcpy(file, path, sizeof(file));
     av_strlcat(file, in, sizeof(file));
 
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    image selected: %s\n", in);
-
     if (skinBPRead(file, &currItem->Bitmap) != 0)
         return 1;