Commit fb561706 authored by Martin Nordholts's avatar Martin Nordholts Committed by Martin Nordholts

Pass the scroll amount in variables that we can modify as we please before

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().

svn path=/trunk/; revision=26773
parent c986dd66
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().
2008-08-26 Michael Natterer <mitch@gimp.org>
* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): don't
......
......@@ -130,14 +130,16 @@ gimp_display_shell_autoscroll_timeout (gpointer data)
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment