choose a better tile cache size.
2008-01-31 Sven Neumann <sven@gimp.org> * plug-ins/common/iwarp.c: choose a better tile cache size. svn path=/trunk/; revision=24760
This commit is contained in:

committed by
Sven Neumann

parent
d0cedbcbbd
commit
bb43c6c3c6
@ -1,3 +1,7 @@
|
||||
2008-01-31 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/iwarp.c: choose a better tile cache size.
|
||||
|
||||
2008-01-31 Martin Nordholts <martinn@svn.gnome.org>
|
||||
|
||||
* app/tools/gimppolygonselecttool.[ch]: Code formating overhaul.
|
||||
|
@ -301,8 +301,6 @@ run (const gchar *name,
|
||||
case GIMP_RUN_INTERACTIVE:
|
||||
case GIMP_RUN_WITH_LAST_VALS:
|
||||
gimp_get_data (PLUG_IN_PROC, &iwarp_vals);
|
||||
gimp_tile_cache_ntiles (2 * (drawable->width + gimp_tile_width ()-1) /
|
||||
gimp_tile_width ());
|
||||
if (iwarp_dialog ())
|
||||
iwarp ();
|
||||
gimp_set_data (PLUG_IN_PROC, &iwarp_vals, sizeof (iwarp_vals_t));
|
||||
@ -914,7 +912,6 @@ iwarp_preview_init (void)
|
||||
guchar *linebuffer = NULL;
|
||||
gdouble dx, dy;
|
||||
|
||||
|
||||
dx = (gdouble) sel_width / max_current_preview_width;
|
||||
dy = (gdouble) sel_height / max_current_preview_height;
|
||||
|
||||
@ -931,7 +928,6 @@ iwarp_preview_init (void)
|
||||
preview_width = (gint) (sel_width / pre2img);
|
||||
preview_height = (gint) (sel_height / pre2img);
|
||||
|
||||
|
||||
if (srcimage)
|
||||
{
|
||||
srcimage = g_renew (guchar,
|
||||
@ -986,6 +982,8 @@ iwarp_init (void)
|
||||
tile_width = gimp_tile_width ();
|
||||
tile_height = gimp_tile_height ();
|
||||
|
||||
gimp_tile_cache_ntiles (sel_width / tile_width + 1);
|
||||
|
||||
iwarp_preview_init ();
|
||||
iwarp_cpy_images ();
|
||||
|
||||
|
Reference in New Issue
Block a user