summaryrefslogtreecommitdiffstats
path: root/Gui/app.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-25 17:33:30 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-25 17:33:30 +0000
commitfce995a07aef239f9e130610aafce537995f6103 (patch)
tree993d26a5838821e079bfa6a667a114516c325351 /Gui/app.c
parentc3d9fc330b3a74ed644b45f0473962422f1fa16c (diff)
downloadmpv-fce995a07aef239f9e130610aafce537995f6103.tar.bz2
mpv-fce995a07aef239f9e130610aafce537995f6103.tar.xz
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8281 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/app.c')
-rw-r--r--Gui/app.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/Gui/app.c b/Gui/app.c
index b58e649aa8..346a93131a 100644
--- a/Gui/app.c
+++ b/Gui/app.c
@@ -154,3 +154,41 @@ int appFindMessage( unsigned char * str )
if ( !strcmp( evNames[i].name,str ) ) return evNames[i].msg;
return -1;
}
+
+void btnModify( int event,float state )
+{
+ int j;
+ for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
+ if ( appMPlayer.Items[j].msg == event )
+ {
+ switch ( appMPlayer.Items[j].type )
+ {
+ case itButton:
+ appMPlayer.Items[j].pressed=(int)state;
+ appMPlayer.Items[j].tmp=(int)state;
+ break;
+ case itPotmeter:
+ case itHPotmeter:
+ if ( state < 0.0f ) state=0.0f;
+ if ( state > 100.f ) state=100.0f;
+ appMPlayer.Items[j].value=state;
+ break;
+ }
+ }
+}
+
+float btnGetValue( int event )
+{
+ int j;
+ for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
+ if ( appMPlayer.Items[j].msg == event ) return appMPlayer.Items[j].value;
+ return 0;
+}
+
+void btnSet( int event,int set )
+{
+ int j;
+ for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
+ if ( appMPlayer.Items[j].msg == event ) appMPlayer.Items[j].disabled=set;
+}
+ \ No newline at end of file