gimp r24261 - in branches/gimp-2-4: . app/core



Author: mitch
Date: 2007-12-04 11:36:33 +0000 (Tue, 04 Dec 2007)
New Revision: 24261
ViewCVS link: http://svn.gnome.org/viewcvs/gimp?rev=24261&view=rev

Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/app/core/gimpdrawable.c
   branches/gimp-2-4/app/core/gimpdrawable.h
   branches/gimp-2-4/app/core/gimpimage-item-list.c
   branches/gimp-2-4/app/core/gimpimage-item-list.h
   branches/gimp-2-4/app/core/gimpimage-scale.c
   branches/gimp-2-4/app/core/gimplayer.c
Log:
2007-12-04  Michael Natterer  <mitch gimp org>

	Merged from trunk:

	* app/core/gimpdrawable.[ch]: added new API
	gimp_drawable_estimate_memsize() and virtual function
	GimpDrawable::estimate_memsize() which estimate the memsize of a
	drawable after scaling/resizing.

	* app/core/gimplayer.c: implement the virtual function and take
	the layer mask into account.

	* app/core/gimpimage-item-list.[ch] (gimp_image_item_list_get_list):
	added const qualifiers.

	* app/core/gimpimage-scale.c (gimp_image_scale_check): use the new
	function to correctly estimate the new size instead of scaling the
	drawables' memsizes including all constant parts. Fixes bug #329468.






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