mirror of https://github.com/GNOME/gimp.git
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:
parent
0ff4081fbf
commit
85cc5d92e5
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue