Changeset 11981e96e586b894caecdc0aec7510f5558f2eb8

Show
Ignore:
Timestamp:
29/04/04 20:38:44 (5 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1083263924 +0000
git-parent:

[d0b60e6534e19395a2e1d8dcea6af4e354a4a442]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1083263924 +0000
Message:

* Fix the fullscreen button.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/intf.m

    r6e5788c r11981e9  
    488488    [self manageVolumeSlider]; 
    489489     
    490     p_playlist = (playlist_t *) vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); 
    491      
    492     if( p_playlist ) 
    493     { 
    494         /* Check if we need to start playing */ 
    495         if( p_intf->b_play
     490    /* Check if we need to start playing */ 
     491    if( p_intf->b_play ) 
     492    { 
     493        p_playlist = (playlist_t *) vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); 
     494 
     495        if( p_playlist
    496496        { 
    497497            playlist_Play( p_playlist ); 
    498         } 
    499  
    500         var_Get( p_playlist, "fullscreen", &val ); 
    501         [o_btn_fullscreen setState: val.b_bool]; 
    502         vlc_object_release( p_playlist ); 
    503     } 
     498            vlc_object_release( p_playlist ); 
     499        } 
     500    } 
     501     
     502    [o_btn_fullscreen setState: ( var_Get( p_playlist, "fullscreen", &val )>=0 && val.b_bool )]; 
    504503} 
    505504 
     
    867866        vout_thread_t * p_vout; 
    868867        vlc_value_t val; 
    869         if( var_Get( p_playlist, "fullscreen", &val )>=0 && val.b_bool ) 
    870         { 
    871             [o_btn_fullscreen setState:VLC_TRUE]; 
    872         } 
    873         else 
    874         { 
    875             [o_btn_fullscreen setState:VLC_FALSE]; 
    876         } 
     868  
     869        [o_btn_fullscreen setState: ( var_Get( p_playlist, "fullscreen", &val )>=0 && val.b_bool ) ]; 
     870         
    877871        p_vout = vlc_object_find( p_intf, VLC_OBJECT_VOUT, FIND_ANYWHERE ); 
    878872        if( p_vout != NULL )