Remove hardcoded "goto goto_next_file;" for -identify switch as suggested
by "Per Winkvist <per.winkvist@telia.com>", use -frames 0 if you
want the old behaviour.
line source
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <stdlib.h>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <stdio.h>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include <string.h>
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../config.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../mp_msg.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "../help_mp.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "app.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "wm/wskeys.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "skin/skin.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "mplayer/mplayer.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 #include "interface.h"
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 evName evNames[] =
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evNone, "evNone" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPlay, "evPlay" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evStop, "evStop" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPause, "evPause" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPrev, "evPrev" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evNext, "evNext" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evLoad, "evLoad" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evEqualizer, "evEqualizer" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evEqualizer, "evEqualeaser" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPlayList, "evPlaylist" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evExit, "evExit" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evIconify, "evIconify" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evIncBalance, "evIncBalance" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evDecBalance, "evDecBalance" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evFullScreen, "evFullScreen" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evFName, "evFName" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evMovieTime, "evMovieTime" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evAbout, "evAbout" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evLoadPlay, "evLoadPlay" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPreferences, "evPreferences" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evSkinBrowser, "evSkinBrowser" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evBackward10sec, "evBackward10sec" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evForward10sec, "evForward10sec" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evBackward1min, "evBackward1min" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evForward1min, "evForward1min" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evBackward10min, "evBackward10min" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evForward10min, "evForward10min" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evIncVolume, "evIncVolume" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evDecVolume, "evDecVolume" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evMute, "evMute" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evIncAudioBufDelay, "evIncAudioBufDelay" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evDecAudioBufDelay, "evDecAudioBufDelay" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPlaySwitchToPause, "evPlaySwitchToPause" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPauseSwitchToPlay, "evPauseSwitchToPlay" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evNormalSize, "evNormalSize" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evDoubleSize, "evDoubleSize" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evSetMoviePosition, "evSetMoviePosition" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evSetVolume, "evSetVolume" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evSetBalance, "evSetBalance" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evHelp, "evHelp" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evLoadSubtitle, "evLoadSubtitle" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPlayDVD, "evPlayDVD" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evPlayVCD, "evPlayVCD" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evSetURL, "evSetURL" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evLoadAudioFile, "evLoadAudioFile" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evDropSubtitle, "evDropSubtitle" },
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { evSetAspect, "evSetAspect" }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 };
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int evBoxs = sizeof( evNames ) / sizeof( evName );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 // ---
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 extern char *get_path(char *);
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 listItems appMPlayer;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char * skinDirInHome=NULL;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char * skinMPlayerDir=NULL;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 char * skinName = NULL;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 void appClearItem( wItem * item )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->type=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 // ---
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->x=0; item->y=0; item->width=0; item->height=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 // ---
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->px=0; item->py=0; item->psx=0; item->psy=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 // ---
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->msg=0; item->msg2=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->pressed=btnReleased;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->tmp=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->key=0; item->key2=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->Bitmap.Width=0; item->Bitmap.Height=0; item->Bitmap.BPP=0; item->Bitmap.ImageSize=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( item->Bitmap.Image ) free( item->Bitmap.Image );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->Bitmap.Image=NULL;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 // ---
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->fontid=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( item->label ) free( item->label ); item->label=NULL;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->event=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 void appCopy( listItems * dest,listItems * source )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 dest->NumberOfItems=source->NumberOfItems;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memcpy( &dest->Items,&source->Items,128 * sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 dest->NumberOfMenuItems=source->NumberOfMenuItems;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memcpy( &dest->MenuItems,&source->MenuItems,32 * sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memcpy( &dest->main,&source->main,sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memcpy( &dest->sub,&source->sub,sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memcpy( &dest->menuBase,&source->menuBase,sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memcpy( &dest->menuSelected,&source->menuSelected,sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 void appInitStruct( listItems * item )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int i;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 for ( i=0;i<item->NumberOfItems;i++ )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appClearItem( &item->Items[i] );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 for ( i=0;i<item->NumberOfMenuItems;i++ )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appClearItem( &item->MenuItems[i] );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->NumberOfItems=-1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memset( item->Items,0,128 * sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->NumberOfMenuItems=-1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 memset( item->MenuItems,0,32 * sizeof( wItem ) );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appClearItem( &item->main );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->mainDecoration=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appClearItem( &item->sub );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->sub.Bitmap.Width=384; item->sub.Bitmap.Height=384;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->sub.width=384; item->sub.height=384;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->sub.x=-1; item->sub.y=-1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appClearItem( &item->menuBase );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appClearItem( &item->menuSelected );
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->sub.R=item->sub.G=item->sub.B=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->bar.R=item->bar.G=item->bar.B=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->main.R=item->main.G=item->main.B=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->barIsPresent=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 item->menuIsPresent=0;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int appFindKey( unsigned char * name )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int i;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 for ( i=0;i<wsKeyNumber;i++ )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( !strcmp( wsKeyNames[i].name,name ) ) return wsKeyNames[i].code;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 return -1;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int appFindMessage( unsigned char * str )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 int i;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 for ( i=0;i<evBoxs;i++ )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 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 itVPotmeter:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case itHPotmeter:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( state < 0.0f ) state=0.0f;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( state > 100.f ) state=100.0f;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appMPlayer.Items[j].value=state;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 for ( j=0;j < appMPlayer.NumberOfBarItems + 1;j++ )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( appMPlayer.barItems[j].msg == event )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 switch ( appMPlayer.barItems[j].type )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 {
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case itButton:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appMPlayer.barItems[j].pressed=(int)state;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appMPlayer.barItems[j].tmp=(int)state;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 break;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case itPotmeter:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case itVPotmeter:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 case itHPotmeter:
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( state < 0.0f ) state=0.0f;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( state > 100.f ) state=100.0f;
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 appMPlayer.barItems[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].pressed=set; appMPlayer.barItems[j].tmp=0; }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 for ( j=0;j<appMPlayer.NumberOfBarItems + 1;j++ )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 if ( appMPlayer.barItems[j].msg == event )
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 { appMPlayer.barItems[j].pressed=set; appMPlayer.barItems[j].tmp=0; }
+ 鐃緒申��申鐃初姐�渇����鐃醇�鐃緒申��申鐃緒申 }