gimp r26773 - in trunk: . app/display



Author: martinn
Date: Tue Aug 26 17:47:30 2008
New Revision: 26773
URL: http://svn.gnome.org/viewvc/gimp?rev=26773&view=rev

Log:
2008-08-26  Martin Nordholts  <martinn svn gnome org>

	* app/display/gimpdisplayshell-autoscroll.c
	(gimp_display_shell_autoscroll_timeout): Pass the scroll amount in
	variables that we can modify as we please before they actually
	reach gimp_display_shell_scroll().


Modified:
   trunk/ChangeLog
   trunk/app/display/gimpdisplayshell-autoscroll.c

Modified: trunk/app/display/gimpdisplayshell-autoscroll.c
==============================================================================
--- trunk/app/display/gimpdisplayshell-autoscroll.c	(original)
+++ trunk/app/display/gimpdisplayshell-autoscroll.c	Tue Aug 26 17:47:30 2008
@@ -130,14 +130,16 @@
 
   if (dx || dy)
     {
-      GimpDisplay *display     = shell->display;
-      GimpTool    *active_tool = tool_manager_get_active (display->gimp);
+      GimpDisplay *display         = shell->display;
+      GimpTool    *active_tool     = tool_manager_get_active (display->gimp);
+      gint         scroll_amount_x = AUTOSCROLL_DX * dx;
+      gint         scroll_amount_y = AUTOSCROLL_DX * dy;
 
       info->time += AUTOSCROLL_DT;
 
       gimp_display_shell_scroll (shell,
-                                 AUTOSCROLL_DX * (gdouble) dx,
-                                 AUTOSCROLL_DX * (gdouble) dy);
+                                 scroll_amount_x,
+                                 scroll_amount_y);
 
       gimp_display_shell_untransform_coordinate (shell,
                                                  &device_coords,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]