gimp/app/gdisplay_ops.h
Michael Natterer 085f9b6e55 block all canvas events while resizing the display so the standard canvas
2000-04-16  Michael Natterer  <mitch@gimp.org>

	* app/gdisplay_ops.c (gdisplay_shrink_wrap): block all canvas
	events while resizing the display so the standard canvas "expose"
	and "configure" handlers are not called.
	This optimization is valid because shrink_wrap's caller has to do
	a full recalculation and expose of the gdisplay anyway.
	For the same reason, I removed the calls to gdisplay_expose_full()
	and bounds_checking() from shrink_wrap.

	This should also fix the double exposes Austin reported some time
	ago. I hope it does not re-break yesterday's fix :)

	* app/gdisplay_ops.[ch]: removed unused function
	gdisplay_resize_image().

	* app/scale.c (resize_display): do a full expose if one of the
	"resize_display" or "redisplay" parameters is TRUE.
2000-04-16 12:38:44 +00:00

37 lines
1.4 KiB
C

/* The GIMP -- an image manipulation program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef __GDISPLAY_OPS_H__
#define __GDISPLAY_OPS_H__
#include "gdisplay.h"
gulong gdisplay_black_pixel (GDisplay *gdisp);
gulong gdisplay_gray_pixel (GDisplay *gdisp);
gulong gdisplay_white_pixel (GDisplay *gdisp);
gulong gdisplay_color_pixel (GDisplay *gdisp);
void gdisplay_xserver_resolution (gdouble *xres,
gdouble *yres);
void gdisplay_new_view (GDisplay *gdisp);
void gdisplay_close_window (GDisplay *gdisp,
gboolean kill_it);
void gdisplay_shrink_wrap (GDisplay *gdisp);
#endif /* __GDISPLAY_OPS_H__ */