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
f55247fc
Commit
f55247fc
authored
Mar 04, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "macosx vout: show complete window if we would resize beyond screen bounds"
This reverts commit
3effe298
.
parent
3effe298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
modules/video_output/macosx.m
modules/video_output/macosx.m
+5
-12
No files found.
modules/video_output/macosx.m
View file @
f55247fc
...
...
@@ -355,7 +355,7 @@ static int Control (vout_display_t *vd, int query, va_list ap)
return
VLC_SUCCESS
;
// this is okay, since the event will occur again when we have a window
NSRect
windowFrame
=
[
o_window
frame
];
NSRect
glViewFrame
=
[
sys
->
glView
frame
];
NS
Rect
screenFrame
=
[[
o_window
screen
]
visibleFrame
]
;
NS
Size
screenSize
=
[[
o_window
screen
]
visibleFrame
].
size
;
NSSize
windowMinSize
=
[
o_window
minSize
];
topleftbase
.
x
=
0
;
...
...
@@ -372,11 +372,10 @@ static int Control (vout_display_t *vd, int query, va_list ap)
i_height
=
windowMinSize
.
height
;
/* make sure the window doesn't exceed the screen size the window is on */
if
(
i_width
>
screenFrame
.
size
.
width
)
{
topleftscreen
.
x
=
screenFrame
.
origin
.
x
;
i_width
=
screenFrame
.
size
.
width
;
}
if
(
i_width
>
screenSize
.
width
)
i_width
=
screenSize
.
width
;
if
(
i_height
>
screenSize
.
height
)
i_height
=
screenSize
.
height
;
if
(
i_height
!=
glViewFrame
.
size
.
height
||
i_width
!=
glViewFrame
.
size
.
width
)
{
...
...
@@ -386,12 +385,6 @@ static int Control (vout_display_t *vd, int query, va_list ap)
new_frame
.
origin
.
x
=
topleftscreen
.
x
;
new_frame
.
origin
.
y
=
topleftscreen
.
y
-
new_frame
.
size
.
height
;
if
(
new_frame
.
size
.
height
>
screenFrame
.
size
.
height
)
{
new_frame
.
size
.
height
=
screenFrame
.
size
.
height
;
new_frame
.
origin
.
y
=
screenFrame
.
origin
.
y
;
}
[
sys
->
glView
performSelectorOnMainThread
:
@selector
(
setWindowFrameWithValue
:)
withObject
:
[
NSValue
valueWithRect
:
new_frame
]
waitUntilDone
:
NO
];
}
[
o_pool
release
];
...
...
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