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
2d2cde17
Commit
2d2cde17
authored
May 05, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fix mouse position sent to vlc core for menus
parent
ee3053e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
modules/gui/macosx/VideoView.m
modules/gui/macosx/VideoView.m
+16
-2
No files found.
modules/gui/macosx/VideoView.m
View file @
2d2cde17
...
...
@@ -313,7 +313,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
-
(
void
)
mouseMoved
:(
NSEvent
*
)
o_event
{
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
if
(
p_vout
)
{
NSPoint
ml
;
NSRect
s_rect
;
...
...
@@ -325,7 +325,21 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if
(
b_inside
)
{
vout_display_SendEventMouseMoved
(
[[[
self
subviews
]
objectAtIndex
:
0
]
voutDisplay
],
((
int
)
ml
.
x
),
((
int
)
s_rect
.
size
.
height
-
((
int
)
ml
.
y
))
);
vout_display_t
*
vd
=
[[[
self
subviews
]
objectAtIndex
:
0
]
voutDisplay
];
vout_display_place_t
place
;
vout_display_PlacePicture
(
&
place
,
&
vd
->
source
,
vd
->
cfg
,
false
);
if
(
place
.
width
>
0
&&
place
.
height
>
0
)
{
const
int
x
=
vd
->
source
.
i_x_offset
+
(
int64_t
)(
ml
.
x
-
place
.
x
)
*
vd
->
source
.
i_visible_width
/
place
.
width
;
const
int
y
=
vd
->
source
.
i_y_offset
+
(
int64_t
)((
int
)
s_rect
.
size
.
height
-
(
int
)
ml
.
y
-
place
.
y
)
*
vd
->
source
.
i_visible_height
/
place
.
height
;
vout_display_SendEventMouseMoved
(
vd
,
x
,
y
);
}
[[
VLCMain
sharedInstance
]
showFullscreenController
];
}
vlc_object_release
(
p_vout
);
...
...
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