gimp r24719 - in branches/gimp-2-4: . plug-ins/gimpressionist



Author: neo
Date: Sun Jan 27 13:49:12 2008
New Revision: 24719
URL: http://svn.gnome.org/viewvc/gimp?rev=24719&view=rev

Log:
2008-01-27  Sven Neumann  <sven gimp org>

	* plug-ins/gimpressionist/gimp.c: use a tile cache for better
	performance. Addresses bug #512126.



Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/plug-ins/gimpressionist/gimp.c

Modified: branches/gimp-2-4/plug-ins/gimpressionist/gimp.c
==============================================================================
--- branches/gimp-2-4/plug-ins/gimpressionist/gimp.c	(original)
+++ branches/gimp-2-4/plug-ins/gimpressionist/gimp.c	Sun Jan 27 13:49:12 2008
@@ -147,7 +147,7 @@
       if (run_mode == GIMP_RUN_INTERACTIVE)
         {
           if (!create_gimpressionist ())
-              return;
+            return;
         }
       break;
     default:
@@ -229,6 +229,8 @@
 
   gimp_drawable_mask_bounds (drawable->drawable_id, &x1, &y1, &x2, &y2);
 
+  gimp_tile_cache_ntiles ((x2 - x1) / gimp_tile_width () + 1);
+
   bpp = gimp_drawable_bpp (drawable->drawable_id);
   has_alpha = gimp_drawable_has_alpha (drawable->drawable_id);
   alpha = (has_alpha) ? bpp - 1 : bpp;
@@ -341,6 +343,8 @@
 
   gimp_drawable_mask_bounds (drawable->drawable_id, &x1, &y1, &x2, &y2);
 
+  gimp_tile_cache_ntiles ((x2 - x1) / gimp_tile_width () + 1);
+
   bpp = gimp_drawable_bpp (drawable->drawable_id);
   has_alpha = gimp_drawable_has_alpha (drawable->drawable_id);
   alpha = (has_alpha) ? bpp - 1 : bpp;



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