ClutterInputDevice: Store the cursor coordinate state as floating point

To support sub-pixel motion events coming from relative events, the
fraction part needs to be stored in the input device state as well. To
do this, simply change the current type from gint to gfloat.

https://bugzilla.gnome.org/show_bug.cgi?id=736413
This commit is contained in:
Jonas Ådahl
2014-09-14 13:58:11 +02:00
parent 281a57a6a3
commit a182d4befa
2 changed files with 8 additions and 8 deletions

View File

@ -417,8 +417,8 @@ _clutter_input_device_ensure_touch_info (ClutterInputDevice *device,
void
_clutter_input_device_set_coords (ClutterInputDevice *device,
ClutterEventSequence *sequence,
gint x,
gint y,
gfloat x,
gfloat y,
ClutterStage *stage)
{
g_return_if_fail (CLUTTER_IS_INPUT_DEVICE (device));