Mercurial > mplayer.hg
comparison Gui/skin/skin.c @ 8280:72700fefd3dc
no seeking if stream is STREAMTYPE_STREAM (net/stdin)
author | pontscho |
---|---|
date | Mon, 25 Nov 2002 17:33:30 +0000 |
parents | 54cfbaaf161b |
children | 4c23944315d6 |
comparison
equal
deleted
inserted
replaced
8279:fade8f754da0 | 8280:72700fefd3dc |
---|---|
633 if ( !strcmp( command,skinItem[i].name ) ) | 633 if ( !strcmp( command,skinItem[i].name ) ) |
634 if ( skinItem[i].func( param ) ) return -2; | 634 if ( skinItem[i].func( param ) ) return -2; |
635 } | 635 } |
636 return 0; | 636 return 0; |
637 } | 637 } |
638 | |
639 void btnModify( int event,float state ) | |
640 { | |
641 int j; | |
642 for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ ) | |
643 if ( appMPlayer.Items[j].msg == event ) | |
644 { | |
645 switch ( appMPlayer.Items[j].type ) | |
646 { | |
647 case itButton: | |
648 appMPlayer.Items[j].pressed=(int)state; | |
649 appMPlayer.Items[j].tmp=(int)state; | |
650 break; | |
651 case itPotmeter: | |
652 case itHPotmeter: | |
653 if ( state < 0.0f ) state=0.0f; | |
654 if ( state > 100.f ) state=100.0f; | |
655 appMPlayer.Items[j].value=state; | |
656 break; | |
657 } | |
658 } | |
659 } | |
660 | |
661 float btnGetValue( int event ) | |
662 { | |
663 int j; | |
664 for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ ) | |
665 if ( appMPlayer.Items[j].msg == event ) return appMPlayer.Items[j].value; | |
666 return 0; | |
667 } |