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
e6820b61
Commit
e6820b61
authored
Mar 21, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macos vout: implement VOUT_DISPLAY_CHANGE_DISPLAY_FILLED as it seems to be intended
parent
3646cf43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
modules/video_output/macosx.m
modules/video_output/macosx.m
+12
-7
No files found.
modules/video_output/macosx.m
View file @
e6820b61
...
...
@@ -328,10 +328,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_CHANGE_DISPLAY_FILLED
:
{
[[
sys
->
glView
window
]
performSelectorOnMainThread
:
@selector
(
performZoom
:)
withObject
:
nil
waitUntilDone
:
NO
];
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_CHANGE_ZOOM
:
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
...
...
@@ -676,8 +672,17 @@ static void OpenglSwap(vlc_gl_t *gl)
NSRect
bounds
=
[
self
bounds
];
CGFloat
height
=
bounds
.
size
.
height
;
CGFloat
width
=
bounds
.
size
.
width
;
CGFloat
height
,
width
;
if
(
!
vd
||
(
vd
&&
vd
->
cfg
->
is_display_filled
))
{
height
=
bounds
.
size
.
height
;
width
=
bounds
.
size
.
width
;
}
else
{
height
=
vd
->
source
.
i_visible_height
;
width
=
vd
->
source
.
i_visible_width
;
}
GLint
x
=
width
,
y
=
height
;
...
...
@@ -703,7 +708,7 @@ static void OpenglSwap(vlc_gl_t *gl)
}
if
([
self
lockgl
])
{
glViewport
((
width
-
x
)
/
2
,
(
height
-
y
)
/
2
,
x
,
y
);
glViewport
((
bounds
.
size
.
width
-
x
)
/
2
,
(
bounds
.
size
.
height
-
y
)
/
2
,
x
,
y
);
@synchronized
(
self
)
{
// This may be cleared before -drawRect is being called,
...
...
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