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>
|
2008-01-31 Martin Nordholts <martinn@svn.gnome.org>
|
||||||
|
|
||||||
* app/tools/gimppolygonselecttool.[ch]: Code formating overhaul.
|
* app/tools/gimppolygonselecttool.[ch]: Code formating overhaul.
|
||||||
|
@ -301,10 +301,8 @@ run (const gchar *name,
|
|||||||
case GIMP_RUN_INTERACTIVE:
|
case GIMP_RUN_INTERACTIVE:
|
||||||
case GIMP_RUN_WITH_LAST_VALS:
|
case GIMP_RUN_WITH_LAST_VALS:
|
||||||
gimp_get_data (PLUG_IN_PROC, &iwarp_vals);
|
gimp_get_data (PLUG_IN_PROC, &iwarp_vals);
|
||||||
gimp_tile_cache_ntiles (2 * (drawable->width + gimp_tile_width ()-1) /
|
if (iwarp_dialog ())
|
||||||
gimp_tile_width ());
|
iwarp ();
|
||||||
if (iwarp_dialog())
|
|
||||||
iwarp();
|
|
||||||
gimp_set_data (PLUG_IN_PROC, &iwarp_vals, sizeof (iwarp_vals_t));
|
gimp_set_data (PLUG_IN_PROC, &iwarp_vals, sizeof (iwarp_vals_t));
|
||||||
gimp_displays_flush ();
|
gimp_displays_flush ();
|
||||||
break;
|
break;
|
||||||
@ -683,7 +681,7 @@ iwarp_frame (void)
|
|||||||
gboolean padding;
|
gboolean padding;
|
||||||
|
|
||||||
progress = 0;
|
progress = 0;
|
||||||
max_progress = (yh-yl)*(xh-xl);
|
max_progress = (yh-yl) * (xh-xl);
|
||||||
|
|
||||||
gimp_pixel_rgn_init (&dest_rgn, destdrawable,
|
gimp_pixel_rgn_init (&dest_rgn, destdrawable,
|
||||||
xl, yl, xh-xl, yh-yl, TRUE, TRUE);
|
xl, yl, xh-xl, yh-yl, TRUE, TRUE);
|
||||||
@ -914,7 +912,6 @@ iwarp_preview_init (void)
|
|||||||
guchar *linebuffer = NULL;
|
guchar *linebuffer = NULL;
|
||||||
gdouble dx, dy;
|
gdouble dx, dy;
|
||||||
|
|
||||||
|
|
||||||
dx = (gdouble) sel_width / max_current_preview_width;
|
dx = (gdouble) sel_width / max_current_preview_width;
|
||||||
dy = (gdouble) sel_height / max_current_preview_height;
|
dy = (gdouble) sel_height / max_current_preview_height;
|
||||||
|
|
||||||
@ -931,7 +928,6 @@ iwarp_preview_init (void)
|
|||||||
preview_width = (gint) (sel_width / pre2img);
|
preview_width = (gint) (sel_width / pre2img);
|
||||||
preview_height = (gint) (sel_height / pre2img);
|
preview_height = (gint) (sel_height / pre2img);
|
||||||
|
|
||||||
|
|
||||||
if (srcimage)
|
if (srcimage)
|
||||||
{
|
{
|
||||||
srcimage = g_renew (guchar,
|
srcimage = g_renew (guchar,
|
||||||
@ -986,6 +982,8 @@ iwarp_init (void)
|
|||||||
tile_width = gimp_tile_width ();
|
tile_width = gimp_tile_width ();
|
||||||
tile_height = gimp_tile_height ();
|
tile_height = gimp_tile_height ();
|
||||||
|
|
||||||
|
gimp_tile_cache_ntiles (sel_width / tile_width + 1);
|
||||||
|
|
||||||
iwarp_preview_init ();
|
iwarp_preview_init ();
|
||||||
iwarp_cpy_images ();
|
iwarp_cpy_images ();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user