[gimp] app: lch color modes remove unneeded includes



commit feb2bb4083e153242e4f23e5716cb20931c8ffd3
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jan 13 13:52:37 2017 +0100

    app: lch color modes remove unneeded includes

 .../layer-modes/gimpoperationlchchroma.c           |   12 +++---------
 app/operations/layer-modes/gimpoperationlchcolor.c |   10 ++--------
 app/operations/layer-modes/gimpoperationlchhue.c   |   10 ++--------
 .../layer-modes/gimpoperationlchlightness.c        |    6 +-----
 4 files changed, 8 insertions(+), 30 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpoperationlchchroma.c 
b/app/operations/layer-modes/gimpoperationlchchroma.c
index 123b214..26d5be1 100644
--- a/app/operations/layer-modes/gimpoperationlchchroma.c
+++ b/app/operations/layer-modes/gimpoperationlchchroma.c
@@ -5,6 +5,7 @@
  * Copyright (C) 2015 Elle Stone <ellestone ninedegreesbelow com>
  *                    Massimo Valentini <mvalentini src gnome org>
  *                    Thomas Manni <thomas manni free fr>
+ *               2017 Øyvind Kolås <pippin gimp org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -21,18 +22,11 @@
  */
 
 #include "config.h"
-
-#include <cairo.h>
 #include <gegl-plugin.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-#include "libgimpmath/gimpmath.h"
-
+#include <math.h>
 #include "../operations-types.h"
-
 #include "gimpoperationlchchroma.h"
 
-
 static gboolean gimp_operation_lch_chroma_process (GeglOperation       *operation,
                                                    void                *in_buf,
                                                    void                *aux_buf,
@@ -109,7 +103,7 @@ chroma_pre_process (const Babl   *format,
     {
       gfloat A1 = out[4 * i + 1];
       gfloat B1 = out[4 * i + 2];
-      gfloat c1 = hypot (A1, B1);
+      gfloat c1 = hypotf (A1, B1);
 
       if (c1 != 0)
         {
diff --git a/app/operations/layer-modes/gimpoperationlchcolor.c 
b/app/operations/layer-modes/gimpoperationlchcolor.c
index 37e547f..76ef0b9 100644
--- a/app/operations/layer-modes/gimpoperationlchcolor.c
+++ b/app/operations/layer-modes/gimpoperationlchcolor.c
@@ -5,6 +5,7 @@
  * Copyright (C) 2015 Elle Stone <ellestone ninedegreesbelow com>
  *                    Massimo Valentini <mvalentini src gnome org>
  *                    Thomas Manni <thomas manni free fr>
+ *               2017 Øyvind Kolås <pippin gimp org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,16 +21,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
- #include "config.h"
-
-#include <cairo.h>
+#include "config.h"
 #include <gegl-plugin.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-#include "libgimpcolor/gimpcolor.h"
-
 #include "../operations-types.h"
-
 #include "gimpoperationlchcolor.h"
 
 
diff --git a/app/operations/layer-modes/gimpoperationlchhue.c 
b/app/operations/layer-modes/gimpoperationlchhue.c
index a56fc38..88c6433 100644
--- a/app/operations/layer-modes/gimpoperationlchhue.c
+++ b/app/operations/layer-modes/gimpoperationlchhue.c
@@ -21,16 +21,10 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
- #include "config.h"
-
-#include <cairo.h>
+#include "config.h"
 #include <gegl-plugin.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-#include "libgimpmath/gimpmath.h"
-
+#include <math.h>
 #include "../operations-types.h"
-
 #include "gimpoperationlchhue.h"
 
 
diff --git a/app/operations/layer-modes/gimpoperationlchlightness.c 
b/app/operations/layer-modes/gimpoperationlchlightness.c
index 15ed656..e54b48d 100644
--- a/app/operations/layer-modes/gimpoperationlchlightness.c
+++ b/app/operations/layer-modes/gimpoperationlchlightness.c
@@ -5,6 +5,7 @@
  * Copyright (C) 2015 Elle Stone <ellestone ninedegreesbelow com>
  *                    Massimo Valentini <mvalentini src gnome org>
  *                    Thomas Manni <thomas manni free fr>
+ *               2017 Øyvind Kolås <pippin gimp org>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,12 +23,7 @@
 
  #include "config.h"
 
-#include <cairo.h>
 #include <gegl-plugin.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-
-#include "libgimpcolor/gimpcolor.h"
-
 #include "../operations-types.h"
 
 #include "gimpoperationlchlightness.h"


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