added new API gimp_drawable_estimate_memsize() and virtual function
2007-12-04 Michael Natterer <mitch@gimp.org> * 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. * app/gimp-log.[ch]: added IMAGE_SCALE log domain. * app/core/gimpimage-scale.c: use it here for debugging output. svn path=/trunk/; revision=24260
This commit is contained in:
committed by
Michael Natterer
parent
4fe0a3a613
commit
dd80b4c263
@ -39,7 +39,8 @@ gimp_log_init (void)
|
||||
{ "dnd", GIMP_LOG_DND },
|
||||
{ "help", GIMP_LOG_HELP },
|
||||
{ "dialog-factory", GIMP_LOG_DIALOG_FACTORY },
|
||||
{ "save-dialog", GIMP_LOG_SAVE_DIALOG }
|
||||
{ "save-dialog", GIMP_LOG_SAVE_DIALOG },
|
||||
{ "image-scale", GIMP_LOG_IMAGE_SCALE }
|
||||
};
|
||||
|
||||
gimp_log_flags = g_parse_debug_string (env_log_val,
|
||||
|
||||
Reference in New Issue
Block a user