Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
08159b75
Commit
08159b75
authored
Feb 05, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: don't resize the vout in case VLC is in fullscreen mode (fixes #5920)
parent
ee6c4a29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
modules/gui/macosx/misc.h
modules/gui/macosx/misc.h
+2
-0
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+5
-0
modules/video_output/macosx.m
modules/video_output/macosx.m
+4
-7
No files found.
modules/gui/macosx/misc.h
View file @
08159b75
...
...
@@ -77,6 +77,8 @@
/* animate mode is only supported in >=10.4 */
-
(
void
)
closeAndAnimate
:
(
BOOL
)
animate
;
-
(
BOOL
)
isFullscreen
;
@end
...
...
modules/gui/macosx/misc.m
View file @
08159b75
...
...
@@ -360,6 +360,11 @@ static NSMutableArray *blackoutWindows = NULL;
[
invoc
invoke
];
}
}
-
(
BOOL
)
isFullscreen
{
return
YES
;
}
@end
/*****************************************************************************
...
...
modules/video_output/macosx.m
View file @
08159b75
...
...
@@ -47,12 +47,9 @@
#include <vlc_dialog.h>
#include "opengl.h"
#ifndef MAC_OS_X_VERSION_10_7
enum
{
NSApplicationPresentationFullScreen
=
(
1
<<
10
),
NSApplicationPresentationAutoHideToolbar
=
(
1
<<
11
)
};
#endif
@interface
NSWindow
(
VLCCustomCode
)
-
(
BOOL
)
isFullscreen
;
@end
/**
* Forward declarations
...
...
@@ -496,7 +493,7 @@ static void OpenglSwap(vlc_gl_t *gl)
*/
-
(
void
)
setWindowFrameWithValue
:(
NSValue
*
)
value
{
if
(
!
(
NSAppKitVersionNumber
>=
1115
.
2
&&
[
NSApp
currentSystemPresentationOptions
]
==
NSApplicationPresentationFullScreen
)
)
if
(
!
[[
self
window
]
isFullscreen
]
)
{
NSRect
frame
=
[
value
rectValue
];
if
(
frame
.
origin
.
x
<=
0
.
0
&&
frame
.
origin
.
y
<=
0
.
0
)
...
...
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