Commit 7c2b5595 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

stop synthesizing expose events but use gdk_window_invalidate_rect() and

2001-11-02  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-scroll.c: stop synthesizing expose
	events but use gdk_window_invalidate_rect() and
	gdk_window_process_updates() (both with "update_children == FALSE"
	because the canvas has no children).

	* app/tools/gimpmagnifytool.c: nothing.
parent d162376d
2001-11-02 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-scroll.c: stop synthesizing expose
events but use gdk_window_invalidate_rect() and
gdk_window_process_updates() (both with "update_children == FALSE"
because the canvas has no children).
* app/tools/gimpmagnifytool.c: nothing.
2001-11-01 Michael Natterer <mitch@gimp.org>
* app/display/Makefile.am
......
......@@ -134,17 +134,21 @@ gimp_display_shell_scroll (GimpDisplayShell *shell,
*/
while ((event = gdk_event_get_graphics_expose (shell->canvas->window)))
{
gtk_widget_event (shell->canvas, event);
gdk_window_invalidate_rect (shell->canvas->window,
&event->expose.area,
FALSE);
if (event->expose.count == 0)
{
gdk_event_free (event);
break;
}
if (event->expose.count == 0)
{
gdk_event_free (event);
break;
}
gdk_event_free (event);
}
gdk_window_process_updates (shell->canvas->window, FALSE);
return TRUE;
}
......@@ -167,4 +171,3 @@ gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell)
shell->offset_y = CLAMP (shell->offset_y, 0,
MAX (sy - shell->disp_height, 0));
}
......@@ -347,8 +347,8 @@ gimp_magnify_tool_button_release (GimpTool *tool,
{
x1 = (magnify->w < 0) ? magnify->x + magnify->w : magnify->x;
y1 = (magnify->h < 0) ? magnify->y + magnify->h : magnify->y;
w = (magnify->w < 0) ? -magnify->w : magnify->w;
h = (magnify->h < 0) ? -magnify->h : magnify->h;
w = (magnify->w < 0) ? -magnify->w : magnify->w;
h = (magnify->h < 0) ? -magnify->h : magnify->h;
x2 = x1 + w;
y2 = y1 + h;
......@@ -408,6 +408,7 @@ gimp_magnify_tool_motion (GimpTool *tool,
gimp_draw_tool_pause (GIMP_DRAW_TOOL (tool));
gdisplay_untransform_coords (gdisp, mevent->x, mevent->y, &x, &y, TRUE, 0);
magnify->w = (x - magnify->x);
magnify->h = (y - magnify->y);
......
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