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
aa7f483a
Commit
aa7f483a
authored
Apr 19, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout_macosx: fix mouse position in vout for retina displays (close #11214)
parent
a113b849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
modules/video_output/macosx.m
modules/video_output/macosx.m
+9
-12
No files found.
modules/video_output/macosx.m
View file @
aa7f483a
...
@@ -770,24 +770,21 @@ static void OpenglSwap (vlc_gl_t *gl)
...
@@ -770,24 +770,21 @@ static void OpenglSwap (vlc_gl_t *gl)
-
(
void
)
mouseMoved
:(
NSEvent
*
)
o_event
-
(
void
)
mouseMoved
:(
NSEvent
*
)
o_event
{
{
NSPoint
ml
;
NSRect
s_rect
;
BOOL
b_inside
;
/* on HiDPI displays, the point bounds don't equal the actual pixel based bounds */
/* on HiDPI displays, the point bounds don't equal the actual pixel based bounds */
if
(
OSX_LION
)
NSPoint
ml
=
[
self
convertPoint
:
[
o_event
locationInWindow
]
fromView
:
nil
];
s_rect
=
[
self
convertRectToBacking
:[
self
bounds
]];
NSRect
videoRect
=
[
self
bounds
];
else
BOOL
b_inside
=
[
self
mouse
:
ml
inRect
:
videoRect
];
s_rect
=
[
self
bounds
];
ml
=
[
self
convertPoint
:
[
o_event
locationInWindow
]
fromView
:
nil
];
if
(
OSX_LION
)
{
b_inside
=
[
self
mouse
:
ml
inRect
:
s_rect
];
ml
=
[
self
convertPointToBacking
:
ml
];
videoRect
=
[
self
convertRectToBacking
:
videoRect
];
}
if
(
b_inside
)
{
if
(
b_inside
)
{
@synchronized
(
self
)
{
@synchronized
(
self
)
{
if
(
vd
)
{
if
(
vd
)
{
vout_display_SendMouseMovedDisplayCoordinates
(
vd
,
ORIENT_NORMAL
,
vout_display_SendMouseMovedDisplayCoordinates
(
vd
,
ORIENT_NORMAL
,
(
int
)
ml
.
x
,
s_r
ect
.
size
.
height
-
(
int
)
ml
.
y
,
(
int
)
ml
.
x
,
videoR
ect
.
size
.
height
-
(
int
)
ml
.
y
,
&
vd
->
sys
->
place
);
&
vd
->
sys
->
place
);
}
}
}
}
...
...
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