gimp r25653 - in trunk: . app/core
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25653 - in trunk: . app/core
- Date: Tue, 13 May 2008 20:42:20 +0100 (BST)
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]