1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-09-30 00:35:05 +03: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:
Werner Almesberger 2016-08-18 13:36:06 -03:00
parent d633fbf91d
commit b4384a72f4

View File

@ -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 --------------------------------------------------- */