projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0afd0b7
)
tools: Use correct event axis in debugging GUI
author
Friedrich Schöller
<code@schoeller.se>
Fri, 23 Jan 2015 21:31:04 +0000
(22:31 +0100)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 27 Jan 2015 02:29:52 +0000
(12:29 +1000)
Vertical axis values were used for the horizontal axis as well.
Introduced
1baf109b40e5d610cb46d313d7c412419af8c9e0
Signed-off-by: Friedrich Schöller <code@schoeller.se>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/event-gui.c
patch
|
blob
|
history
diff --git
a/tools/event-gui.c
b/tools/event-gui.c
index 4f9d7e670dfd8f747c79031a264dd4aec375ba89..e574bf7f7f01aab04d57d5db63f367089a29dfc4 100644
(file)
--- a/
tools/event-gui.c
+++ b/
tools/event-gui.c
@@
-370,7
+370,7
@@
handle_event_axis(struct libinput_event *ev, struct window *w)
w->vy = clip(w->vy, 0, w->height);
}
if (h != 0.0) {
- w->hx += (int)
v
;
+ w->hx += (int)
h
;
w->hx = clip(w->hx, 0, w->width);
}
}