[MPlayer-cvslog] r33182 - trunk/gui/skin/skin.c
ib
subversion at mplayerhq.hu
Fri Apr 1 15:30:17 CEST 2011
Author: ib
Date: Fri Apr 1 15:30:17 2011
New Revision: 33182
Log:
Avoid using appMPlayer.
Use skin pointer instead.
Modified:
trunk/gui/skin/skin.c
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Fri Apr 1 15:00:07 2011 (r33181)
+++ trunk/gui/skin/skin.c Fri Apr 1 15:30:17 2011 (r33182)
@@ -182,21 +182,21 @@ static int cmd_window(char *in)
strlower(in);
if (strcmp(in, "main") == 0) {
- currWin = &appMPlayer.main;
- currWinItemIdx = &appMPlayer.IndexOfMainItems;
- currWinItems = appMPlayer.mainItems;
+ currWin = &skin->main;
+ currWinItemIdx = &skin->IndexOfMainItems;
+ currWinItems = skin->mainItems;
} else if (strcmp(in, "sub") == 0) {
- currWin = &appMPlayer.sub;
+ currWin = &skin->sub;
currWinItemIdx = NULL;
currWinItems = NULL;
} else if (strcmp(in, "playbar") == 0) {
- currWin = &appMPlayer.bar;
- currWinItemIdx = &appMPlayer.IndexOfBarItems;
- currWinItems = appMPlayer.barItems;
+ currWin = &skin->bar;
+ currWinItemIdx = &skin->IndexOfBarItems;
+ currWinItems = skin->barItems;
} else if (strcmp(in, "menu") == 0) {
- currWin = &appMPlayer.menu;
- currWinItemIdx = &appMPlayer.IndexOfMenuItems;
- currWinItems = appMPlayer.menuItems;
+ currWin = &skin->menu;
+ currWinItemIdx = &skin->IndexOfMenuItems;
+ currWinItems = skin->menuItems;
} else {
skin_error(MSGTR_SKIN_UNKNOWN_NAME, in);
return 1;
More information about the MPlayer-cvslog
mailing list