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
4b40a27d
Commit
4b40a27d
authored
Jul 06, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: don't allow a automatic resize beyond the right screen border
parent
f63a01ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+5
-0
No files found.
modules/gui/macosx/MainWindow.m
View file @
4b40a27d
...
@@ -1870,6 +1870,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1870,6 +1870,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
if
(
new_frame
.
origin
.
y
<
screenFrame
.
origin
.
y
)
if
(
new_frame
.
origin
.
y
<
screenFrame
.
origin
.
y
)
new_frame
.
origin
.
y
=
screenFrame
.
origin
.
y
;
new_frame
.
origin
.
y
=
screenFrame
.
origin
.
y
;
CGFloat
right_screen_point
=
screenFrame
.
origin
.
x
+
screenFrame
.
size
.
width
;
CGFloat
right_window_point
=
new_frame
.
origin
.
x
+
new_frame
.
size
.
width
;
if
(
right_window_point
>
right_screen_point
)
new_frame
.
origin
.
x
-=
(
right_window_point
-
right_screen_point
);
[[
o_videoWindow
animator
]
setFrame
:
new_frame
display
:
YES
];
[[
o_videoWindow
animator
]
setFrame
:
new_frame
display
:
YES
];
}
}
...
...
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