Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Seungha Yang
gst-plugins-base
Commits
77050a72
Commit
77050a72
authored
Apr 14, 2009
by
Hannes Bistry
Committed by
Tim-Philipp Müller
Apr 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ximagesink: fix mouse pointer offsets in navigation event if window is smaller than the image
Fixes #570768.
parent
dffd1bcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sys/ximage/ximagesink.c
sys/ximage/ximagesink.c
+2
-2
No files found.
sys/ximage/ximagesink.c
View file @
77050a72
...
...
@@ -1852,11 +1852,11 @@ gst_ximagesink_navigation_send_event (GstNavigation * navigation,
g_mutex_unlock
(
ximagesink
->
flow_lock
);
if
(
gst_structure_get_double
(
structure
,
"pointer_x"
,
&
x
))
{
if
(
x_offset
>
0
&&
gst_structure_get_double
(
structure
,
"pointer_x"
,
&
x
))
{
x
-=
x_offset
/
2
;
gst_structure_set
(
structure
,
"pointer_x"
,
G_TYPE_DOUBLE
,
x
,
NULL
);
}
if
(
gst_structure_get_double
(
structure
,
"pointer_y"
,
&
y
))
{
if
(
y_offset
>
0
&&
gst_structure_get_double
(
structure
,
"pointer_y"
,
&
y
))
{
y
-=
y_offset
/
2
;
gst_structure_set
(
structure
,
"pointer_y"
,
G_TYPE_DOUBLE
,
y
,
NULL
);
}
...
...
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