[MPlayer-cvslog] r33190 - in trunk/gui: app.c app.h skin/skin.c
ib
subversion at mplayerhq.hu
Sun Apr 3 00:01:55 CEST 2011
Author: ib
Date: Sun Apr 3 00:01:55 2011
New Revision: 33190
Log:
Remove unused wItem member tmp.
Modified:
trunk/gui/app.c
trunk/gui/app.h
trunk/gui/skin/skin.c
Modified: trunk/gui/app.c
==============================================================================
--- trunk/gui/app.c Sat Apr 2 22:45:43 2011 (r33189)
+++ trunk/gui/app.c Sun Apr 3 00:01:55 2011 (r33190)
@@ -141,7 +141,6 @@ void btnModify(int event, float state)
switch (appMPlayer.mainItems[i].type) {
case itButton:
appMPlayer.mainItems[i].pressed = (int)state;
- appMPlayer.mainItems[i].tmp = (int)state;
break;
case itPotmeter:
@@ -162,7 +161,6 @@ void btnModify(int event, float state)
switch (appMPlayer.barItems[i].type) {
case itButton:
appMPlayer.barItems[i].pressed = (int)state;
- appMPlayer.barItems[i].tmp = (int)state;
break;
case itPotmeter:
@@ -183,17 +181,11 @@ void btnSet(int event, int set)
{
int i;
- for (i = 0; i <= appMPlayer.IndexOfMainItems; i++) {
- if (appMPlayer.mainItems[i].message == event) {
+ for (i = 0; i <= appMPlayer.IndexOfMainItems; i++)
+ if (appMPlayer.mainItems[i].message == event)
appMPlayer.mainItems[i].pressed = set;
- appMPlayer.barItems[i].tmp = 0;
- }
- }
- for (i = 0; i <= appMPlayer.IndexOfBarItems; i++) {
- if (appMPlayer.barItems[i].message == event) {
+ for (i = 0; i <= appMPlayer.IndexOfBarItems; i++)
+ if (appMPlayer.barItems[i].message == event)
appMPlayer.barItems[i].pressed = set;
- appMPlayer.barItems[i].tmp = 0;
- }
- }
}
Modified: trunk/gui/app.h
==============================================================================
--- trunk/gui/app.h Sat Apr 2 22:45:43 2011 (r33189)
+++ trunk/gui/app.h Sun Apr 3 00:01:55 2011 (r33190)
@@ -160,7 +160,7 @@ typedef struct {
unsigned int starttime;
int last_x;
- int pressed, tmp;
+ int pressed;
} wItem;
typedef struct {
Modified: trunk/gui/skin/skin.c
==============================================================================
--- trunk/gui/skin/skin.c Sat Apr 2 22:45:43 2011 (r33189)
+++ trunk/gui/skin/skin.c Sun Apr 3 00:01:55 2011 (r33190)
@@ -415,7 +415,6 @@ static int cmd_button(char *in)
item->height = h;
item->message = message;
item->pressed = btnReleased;
- item->tmp = 1;
if (item->message == evPauseSwitchToPlay)
item->pressed = btnDisabled;
More information about the MPlayer-cvslog
mailing list