[gimp] app: also run device history coords through the axis mapping curve function
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: also run device history coords through the axis mapping curve function
- Date: Sun, 6 Feb 2011 12:27:04 +0000 (UTC)
commit 92f130fbc3f2449fce328d82dcf0b4e5e0b192ea
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 6 13:26:25 2011 +0100
app: also run device history coords through the axis mapping curve function
app/widgets/gimpdeviceinfo-coords.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimpdeviceinfo-coords.c b/app/widgets/gimpdeviceinfo-coords.c
index 3861b21..2c2266b 100644
--- a/app/widgets/gimpdeviceinfo-coords.c
+++ b/app/widgets/gimpdeviceinfo-coords.c
@@ -153,22 +153,25 @@ gimp_device_info_get_time_coords (GimpDeviceInfo *info,
if (gdk_device_get_axis (info->device,
event->axes, GDK_AXIS_XTILT, &coords->xtilt))
{
- coords->xtilt = CLAMP (coords->xtilt, GIMP_COORDS_MIN_TILT,
- GIMP_COORDS_MAX_TILT);
+ coords->xtilt = gimp_device_info_map_axis (info,
+ GDK_AXIS_XTILT,
+ coords->xtilt);
}
if (gdk_device_get_axis (info->device,
event->axes, GDK_AXIS_YTILT, &coords->ytilt))
{
- coords->ytilt = CLAMP (coords->ytilt, GIMP_COORDS_MIN_TILT,
- GIMP_COORDS_MAX_TILT);
+ coords->ytilt = gimp_device_info_map_axis (info,
+ GDK_AXIS_YTILT,
+ coords->ytilt);
}
if (gdk_device_get_axis (info->device,
event->axes, GDK_AXIS_WHEEL, &coords->wheel))
{
- coords->wheel = CLAMP (coords->wheel, GIMP_COORDS_MIN_WHEEL,
- GIMP_COORDS_MAX_WHEEL);
+ coords->wheel = gimp_device_info_map_axis (info,
+ GDK_AXIS_WHEEL,
+ coords->wheel);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]