gimp r25786 - in branches/gimp-2-4: . app/display
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25786 - in branches/gimp-2-4: . app/display
- Date: Sat, 24 May 2008 12:52:15 +0000 (UTC)
Author: neo
Date: Sat May 24 12:52:15 2008
New Revision: 25786
URL: http://svn.gnome.org/viewvc/gimp?rev=25786&view=rev
Log:
2008-05-24 Sven Neumann <sven gimp org>
Merged from trunk:
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_canvas_tool_events): fixed use of
gdk_device_get_history(). Fixes airbrush tool with tablets on
newer X.org releases.
Modified:
branches/gimp-2-4/ChangeLog
branches/gimp-2-4/app/display/gimpdisplayshell-callbacks.c
Modified: branches/gimp-2-4/app/display/gimpdisplayshell-callbacks.c
==============================================================================
--- branches/gimp-2-4/app/display/gimpdisplayshell-callbacks.c (original)
+++ branches/gimp-2-4/app/display/gimpdisplayshell-callbacks.c Sat May 24 12:52:15 2008
@@ -1204,11 +1204,19 @@
gimp_display_shell_autoscroll_start (shell, state, mevent);
}
+ /* gdk_device_get_history() has several quirks. First is
+ * that events with borderline timestamps at both ends
+ * are included. Because of that we need to add 1 to
+ * lower border. The second is due to poor X event
+ * resolution. We need to do -1 to ensure that the
+ * amount of events between timestamps is final or
+ * risk loosing some.
+ */
if (gimp_tool_control_get_motion_mode (active_tool->control) ==
GIMP_MOTION_MODE_EXACT &&
gdk_device_get_history (mevent->device, mevent->window,
- shell->last_motion_time,
- mevent->time,
+ shell->last_motion_time + 1,
+ mevent->time - 1,
&history_events,
&n_history_events))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]