gimp r25653 - in trunk: . app/core



Author: neo
Date: Tue May 13 19:42:20 2008
New Revision: 25653
URL: http://svn.gnome.org/viewvc/gimp?rev=25653&view=rev

Log:
2008-05-13  Sven Neumann  <sven gimp org>

	* app/core/gimpcurve-map.c (gimp_curve_map_pixels): use memcpy()
	for the CURVE_NONE case.



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpcurve-map.c

Modified: trunk/app/core/gimpcurve-map.c
==============================================================================
--- trunk/app/core/gimpcurve-map.c	(original)
+++ trunk/app/core/gimpcurve-map.c	Tue May 13 19:42:20 2008
@@ -18,6 +18,8 @@
 
 #include "config.h"
 
+#include <string.h>
+
 #include <glib-object.h>
 
 #include "libgimpmath/gimpmath.h"
@@ -105,16 +107,7 @@
                                      curve_alpha))
     {
     case CURVE_NONE:
-      while (samples--)
-        {
-          dest[0] = src[0];
-          dest[1] = src[1];
-          dest[2] = src[2];
-          dest[3] = src[3];
-
-          src  += 4;
-          dest += 4;
-        }
+      memcpy (dest, src, 4 * sizeof (gfloat));
       break;
 
     case CURVE_COLORS:



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