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
9557c3eb
Commit
9557c3eb
authored
Apr 22, 2015
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: use fabs for windows coordinates
parent
a98452a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/macosx/Windows.m
modules/gui/macosx/Windows.m
+5
-5
No files found.
modules/gui/macosx/Windows.m
View file @
9557c3eb
...
...
@@ -258,7 +258,7 @@
if
((
OSX_MAVERICKS
||
OSX_YOSEMITE
)
&&
b_inFullscreen
&&
constrainedRect
.
size
.
width
==
screenRect
.
size
.
width
&&
constrainedRect
.
size
.
height
!=
screenRect
.
size
.
height
&&
abs
(
screenRect
.
size
.
height
-
constrainedRect
.
size
.
height
)
<=
25
.)
{
&&
f
abs
(
screenRect
.
size
.
height
-
constrainedRect
.
size
.
height
)
<=
25
.)
{
msg_Dbg
(
VLCIntf
,
"Contrain window height %.1f to screen height %.1f"
,
constrainedRect
.
size
.
height
,
screenRect
.
size
.
height
);
...
...
@@ -475,10 +475,10 @@
maxRect
=
[
self
customConstrainFrameRect
:
maxRect
toScreen
:
[
self
screen
]];
// Compare the new frame with the current one
if
((
abs
(
NSMaxX
(
maxRect
)
-
NSMaxX
(
currentFrame
))
<
DIST
)
&&
(
abs
(
NSMaxY
(
maxRect
)
-
NSMaxY
(
currentFrame
))
<
DIST
)
&&
(
abs
(
NSMinX
(
maxRect
)
-
NSMinX
(
currentFrame
))
<
DIST
)
&&
(
abs
(
NSMinY
(
maxRect
)
-
NSMinY
(
currentFrame
))
<
DIST
))
{
if
((
f
abs
(
NSMaxX
(
maxRect
)
-
NSMaxX
(
currentFrame
))
<
DIST
)
&&
(
f
abs
(
NSMaxY
(
maxRect
)
-
NSMaxY
(
currentFrame
))
<
DIST
)
&&
(
f
abs
(
NSMinX
(
maxRect
)
-
NSMinX
(
currentFrame
))
<
DIST
)
&&
(
f
abs
(
NSMinY
(
maxRect
)
-
NSMinY
(
currentFrame
))
<
DIST
))
{
// Already in zoomed mode, reset user frame, if stored
if
([
self
frameAutosaveName
]
!=
nil
)
{
[
self
setFrame
:
previousSavedFrame
display
:
YES
animate
:
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