10l fix in item disabling (vagymi)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8301 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-11-27 23:11:49 +00:00
parent 92b1243b34
commit bb208729b3
4 changed files with 5 additions and 6 deletions

View File

@ -189,6 +189,6 @@ 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;
if ( appMPlayer.Items[j].msg == event ) appMPlayer.Items[j].pressed=set;
}

View File

@ -120,7 +120,7 @@ typedef struct
int px,py,psx,psy;
// ---
int msg,msg2;
int pressed,disabled,tmp;
int pressed,tmp;
int key,key2;
int phases;
float value;

View File

@ -545,8 +545,8 @@ int guiGetEvent( int type,char * arg )
if ( guiIntfStruct.NoWindow ) wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM ) btnSet( evSetMoviePosition,1 );
else btnSet( evSetMoviePosition,0 );
if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM ) btnSet( evSetMoviePosition,btnDisabled );
else btnSet( evSetMoviePosition,btnReleased );
if ( gtkCacheOn ) stream_cache_size=gtkCacheSize;
else stream_cache_size=-1;

View File

@ -179,7 +179,7 @@ void mplMainDraw( void )
{
wItem * item;
txSample * image = NULL;
int i;
int i, type;
if ( appMPlayer.mainWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit );
@ -196,7 +196,6 @@ void mplMainDraw( void )
for( i=0;i < appMPlayer.NumberOfItems + 1;i++ )
{
item=&appMPlayer.Items[i];
if ( !item->disabled )
switch( item->type )
{
case itButton: