Commit 68e4726d authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: added an option for the AR lock to prevent angry users

(cherry picked from commit 8687ceac8e0c7fda373188ff5e29e704993370a2)
parent 90a912af
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
@interface VLCCoreInteraction : NSObject { @interface VLCCoreInteraction : NSObject {
int i_currentPlaybackRate; int i_currentPlaybackRate;
BOOL b_lockAspectRatio;
} }
+ (VLCCoreInteraction *)sharedInstance; + (VLCCoreInteraction *)sharedInstance;
......
...@@ -53,7 +53,6 @@ static VLCCoreInteraction *_o_sharedInstance = nil; ...@@ -53,7 +53,6 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
else else
{ {
_o_sharedInstance = [super init]; _o_sharedInstance = [super init];
b_lockAspectRatio = YES;
} }
return _o_sharedInstance; return _o_sharedInstance;
...@@ -555,12 +554,12 @@ static VLCCoreInteraction *_o_sharedInstance = nil; ...@@ -555,12 +554,12 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
- (void)setAspectRatioLocked:(BOOL)b_value - (void)setAspectRatioLocked:(BOOL)b_value
{ {
b_lockAspectRatio = b_value; config_PutInt( VLCIntf, "macosx-lock-aspect-ratio", b_value );
} }
- (BOOL)aspectRatioIsLocked - (BOOL)aspectRatioIsLocked
{ {
return b_lockAspectRatio; return config_GetInt( VLCIntf, "macosx-lock-aspect-ratio" );
} }
- (void)toggleFullscreen - (void)toggleFullscreen
......
...@@ -102,6 +102,8 @@ void WindowClose ( vout_window_t * ); ...@@ -102,6 +102,8 @@ void WindowClose ( vout_window_t * );
#define PAUSE_MINIMIZED_LONGTEXT N_( \ #define PAUSE_MINIMIZED_LONGTEXT N_( \
"With this option enabled, the playback will be automatically paused when minimizing the window." ) "With this option enabled, the playback will be automatically paused when minimizing the window." )
#define LOCK_ASPECT_RATIO_TEXT N_("Lock Aspect Ratio")
vlc_module_begin () vlc_module_begin ()
set_description( N_("Mac OS X interface") ) set_description( N_("Mac OS X interface") )
set_capability( "interface", 200 ) set_capability( "interface", 200 )
...@@ -122,6 +124,7 @@ vlc_module_begin () ...@@ -122,6 +124,7 @@ vlc_module_begin ()
add_obsolete_bool( "macosx-eq-keep" ) /* since 2.0.0 */ add_obsolete_bool( "macosx-eq-keep" ) /* since 2.0.0 */
add_bool( "macosx-video-autoresize", true, KEEPSIZE_TEXT, KEEPSIZE_LONGTEXT, false ) add_bool( "macosx-video-autoresize", true, KEEPSIZE_TEXT, KEEPSIZE_LONGTEXT, false )
add_bool( "macosx-pause-minimized", false, PAUSE_MINIMIZED_TEXT, PAUSE_MINIMIZED_LONGTEXT, false ) add_bool( "macosx-pause-minimized", false, PAUSE_MINIMIZED_TEXT, PAUSE_MINIMIZED_LONGTEXT, false )
add_bool( "macosx-lock-aspect-ratio", true, LOCK_ASPECT_RATIO_TEXT, LOCK_ASPECT_RATIO_TEXT, true )
add_submodule () add_submodule ()
set_description( "Mac OS X Video Output Provider" ) set_description( "Mac OS X Video Output Provider" )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment