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
4cfebf25
Commit
4cfebf25
authored
Aug 08, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout_macosx: implemented support for resize, zoom, etc. events
parent
67da2de6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
modules/video_output/macosx.m
modules/video_output/macosx.m
+36
-2
No files found.
modules/video_output/macosx.m
View file @
4cfebf25
...
@@ -289,17 +289,51 @@ static int Control (vout_display_t *vd, int query, va_list ap)
...
@@ -289,17 +289,51 @@ static int Control (vout_display_t *vd, int query, va_list ap)
{
{
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
case
VOUT_DISPLAY_CHANGE_WINDOW_STATE
:
case
VOUT_DISPLAY_CHANGE_WINDOW_STATE
:
{
/* todo */
return
VLC_EGENERIC
;
}
case
VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
:
case
VOUT_DISPLAY_CHANGE_DISPLAY_SIZE
:
case
VOUT_DISPLAY_CHANGE_DISPLAY_FILLED
:
case
VOUT_DISPLAY_CHANGE_DISPLAY_FILLED
:
case
VOUT_DISPLAY_CHANGE_ZOOM
:
case
VOUT_DISPLAY_CHANGE_ZOOM
:
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
case
VOUT_DISPLAY_CHANGE_SOURCE_CROP
:
{
{
/* todo */
NSPoint
topleftbase
;
return
VLC_EGENERIC
;
NSPoint
topleftscreen
;
NSRect
new_frame
;
const
vout_display_cfg_t
*
cfg
;
topleftbase
.
x
=
0
;
topleftbase
.
y
=
[[
sys
->
glView
window
]
frame
].
size
.
height
;
topleftscreen
=
[[
sys
->
glView
window
]
convertBaseToScreen
:
topleftbase
];
cfg
=
(
const
vout_display_cfg_t
*
)
va_arg
(
ap
,
const
vout_display_cfg_t
*
);
int
i_width
=
cfg
->
display
.
width
;
int
i_height
=
cfg
->
display
.
height
;
/* Calculate the window's new size, if it is larger than our minimal size */
if
(
i_width
<
[[
sys
->
glView
window
]
minSize
].
width
)
i_width
=
[[
sys
->
glView
window
]
minSize
].
width
;
if
(
i_height
<
[[
sys
->
glView
window
]
minSize
].
height
)
i_height
=
[[
sys
->
glView
window
]
minSize
].
height
;
if
(
i_height
!=
[
sys
->
glView
frame
].
size
.
height
||
i_width
!=
[
sys
->
glView
frame
].
size
.
width
)
{
new_frame
.
size
.
width
=
[[
sys
->
glView
window
]
frame
].
size
.
width
-
[
sys
->
glView
frame
].
size
.
width
+
i_width
;
new_frame
.
size
.
height
=
[[
sys
->
glView
window
]
frame
].
size
.
height
-
[
sys
->
glView
frame
].
size
.
height
+
i_height
;
new_frame
.
origin
.
x
=
topleftscreen
.
x
;
new_frame
.
origin
.
y
=
topleftscreen
.
y
-
new_frame
.
size
.
height
;
[[
sys
->
glView
window
]
setFrame
:
new_frame
display
:
YES
animate
:
YES
];
}
return
VLC_SUCCESS
;
}
}
case
VOUT_DISPLAY_HIDE_MOUSE
:
case
VOUT_DISPLAY_HIDE_MOUSE
:
{
[
NSCursor
setHiddenUntilMouseMoves
:
YES
];
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
case
VOUT_DISPLAY_GET_OPENGL
:
case
VOUT_DISPLAY_GET_OPENGL
:
{
{
...
...
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