comparison Gui/skin/skin.c @ 1729:d6c99f70449e

fix hprogressbar
author pontscho
date Tue, 28 Aug 2001 15:55:02 +0000
parents ab35bee402ff
children 58dd326fcc4a
comparison
equal deleted inserted replaced
1728:014b29286ec4 1729:d6c99f70449e
1 1
2 #include <stdio.h> 2 #include <stdio.h>
3 #include <stdlib.h> 3 #include <stdlib.h>
4 #include <string.h> 4 #include <string.h>
5 5
6 #include "cut.h" 6 #include "cut.h"
680 { 680 {
681 int j; 681 int j;
682 for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ ) 682 for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
683 if ( appMPlayer.Items[j].msg == event ) 683 if ( appMPlayer.Items[j].msg == event )
684 { 684 {
685 if ( appMPlayer.Items[j].used ) continue;
685 switch ( appMPlayer.Items[j].type ) 686 switch ( appMPlayer.Items[j].type )
686 { 687 {
687 case itButton: 688 case itButton:
688 appMPlayer.Items[j].pressed=(int)state; 689 appMPlayer.Items[j].pressed=(int)state;
689 break; 690 break;
695 break; 696 break;
696 } 697 }
697 } 698 }
698 } 699 }
699 700
700 int btnGetValue( int event ) 701 float btnGetValue( int event )
701 { 702 {
702 int j; 703 int j;
703 for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ ) 704 for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
704 if ( appMPlayer.Items[j].msg == event ) return appMPlayer.Items[j].value; 705 if ( appMPlayer.Items[j].msg == event ) return appMPlayer.Items[j].value;
705 return 0; 706 return 0;