use memcpy() for the CURVE_NONE case.

2008-05-13  Sven Neumann  <sven@gimp.org>

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


svn path=/trunk/; revision=25653
This commit is contained in:
Sven Neumann 2008-05-13 19:42:20 +00:00 committed by Sven Neumann
parent 0ff4081fbf
commit 85cc5d92e5
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2008-05-13 Sven Neumann <sven@gimp.org>
* app/core/gimpcurve-map.c (gimp_curve_map_pixels): use memcpy()
for the CURVE_NONE case.
2008-05-13 Sven Neumann <sven@gimp.org>
* app/core/gimpcurve-map.[ch] (gimp_curve_map_pixels): introduced

View File

@ -18,6 +18,8 @@
#include "config.h"
#include <string.h>
#include <glib-object.h>
#include "libgimpmath/gimpmath.h"
@ -105,16 +107,7 @@ gimp_curve_map_pixels (GimpCurve *curve_colors,
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: