Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
8687ceac
Commit
8687ceac
authored
Apr 06, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: added an option for the AR lock to prevent angry users
parent
d48c1e3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
modules/gui/macosx/CoreInteraction.h
modules/gui/macosx/CoreInteraction.h
+0
-1
modules/gui/macosx/CoreInteraction.m
modules/gui/macosx/CoreInteraction.m
+2
-3
modules/gui/macosx/macosx.m
modules/gui/macosx/macosx.m
+3
-0
No files found.
modules/gui/macosx/CoreInteraction.h
View file @
8687ceac
...
...
@@ -27,7 +27,6 @@
@interface
VLCCoreInteraction
:
NSObject
{
int
i_currentPlaybackRate
;
BOOL
b_lockAspectRatio
;
}
+
(
VLCCoreInteraction
*
)
sharedInstance
;
...
...
modules/gui/macosx/CoreInteraction.m
View file @
8687ceac
...
...
@@ -53,7 +53,6 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
else
{
_o_sharedInstance
=
[
super
init
];
b_lockAspectRatio
=
YES
;
}
return
_o_sharedInstance
;
...
...
@@ -555,12 +554,12 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
-
(
void
)
setAspectRatioLocked
:(
BOOL
)
b_value
{
b_lockAspectRatio
=
b_value
;
config_PutInt
(
VLCIntf
,
"macosx-lock-aspect-ratio"
,
b_value
)
;
}
-
(
BOOL
)
aspectRatioIsLocked
{
return
b_lockAspectRatio
;
return
config_GetInt
(
VLCIntf
,
"macosx-lock-aspect-ratio"
)
;
}
-
(
void
)
toggleFullscreen
...
...
modules/gui/macosx/macosx.m
View file @
8687ceac
...
...
@@ -102,6 +102,8 @@ void WindowClose ( vout_window_t * );
#define PAUSE_MINIMIZED_LONGTEXT N_( \
"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 ()
set_description( N_("Mac OS X interface") )
set_capability( "interface", 200 )
...
...
@@ -122,6 +124,7 @@ vlc_module_begin ()
add_obsolete_bool( "macosx-eq-keep" ) /* since 2.0.0 */
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-lock-aspect-ratio", true, LOCK_ASPECT_RATIO_TEXT, LOCK_ASPECT_RATIO_TEXT, true )
add_submodule ()
set_description( "Mac OS X Video Output Provider" )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment