mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-25 21:55:20 +02:00
eeshow/gui/input.c (clicked_x, _y): avoid accumulation of conversion errors
Gtk uses floating-point coordinates. The double conversion during dragging (event -> clicked -> difference with next event) caused dragging to "slow down" in the X- and Y- direction.
This commit is contained in:
parent
d633fbf91d
commit
b4384a72f4
@ -42,7 +42,7 @@ static struct input {
|
||||
} *sp = NULL;
|
||||
|
||||
static int curr_x, curr_y; /* last mouse position */
|
||||
static int clicked_x, clicked_y; /* button down position */
|
||||
static double clicked_x, clicked_y; /* button down position */
|
||||
|
||||
|
||||
/* ----- Debugging tools --------------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user