Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
34e39452
Commit
34e39452
authored
May 19, 2016
by
Cédric Roux
Browse files
bugfix - one needs to translate to local coordinates
parent
e4fd2296
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/gui/timeline.c
View file @
34e39452
...
...
@@ -58,19 +58,20 @@ static void button(gui *_g, widget *_this, int x, int y,
int
key_modifiers
,
int
button
,
int
up
)
{
struct
gui
*
g
=
_g
;
struct
timeline_widget
*
w
=
_this
;
int
d
[
3
];
LOGD
(
"BUTTON timeline %p xy %d %d button %d up %d
\n
"
,
_this
,
x
,
y
,
button
,
up
);
/* scroll up */
if
(
button
==
4
&&
up
==
0
)
{
d
[
0
]
=
x
;
d
[
1
]
=
y
;
d
[
0
]
=
x
-
w
->
common
.
x
;
d
[
1
]
=
y
-
w
->
common
.
y
;
d
[
2
]
=
key_modifiers
;
gui_notify
(
g
,
"scrollup"
,
_this
,
d
);
}
/* scroll down */
if
(
button
==
5
&&
up
==
0
)
{
d
[
0
]
=
x
;
d
[
1
]
=
y
;
d
[
0
]
=
x
-
w
->
common
.
x
;
d
[
1
]
=
y
-
w
->
common
.
y
;
d
[
2
]
=
key_modifiers
;
gui_notify
(
g
,
"scrolldown"
,
_this
,
d
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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