[gimp] app: use hypotf in lhc chroma blend mode



commit 39adf3627de5caee7f9a7eeb190cc7793d406be7
Author: Øyvind Kolås <pippin gimp org>
Date:   Sat Jan 14 21:02:24 2017 +0100

    app: use hypotf in lhc chroma blend mode

 .../layer-modes/gimpoperationlchchroma.c           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/operations/layer-modes/gimpoperationlchchroma.c 
b/app/operations/layer-modes/gimpoperationlchchroma.c
index b1bf8d7..5a08911 100644
--- a/app/operations/layer-modes/gimpoperationlchchroma.c
+++ b/app/operations/layer-modes/gimpoperationlchchroma.c
@@ -110,7 +110,7 @@ chroma_pre_process (const Babl   *from_fish,
         {
           gfloat A2 = layer_lab[4 * i + 1];
           gfloat B2 = layer_lab[4 * i + 2];
-          gfloat c2 = hypot (A2, B2);
+          gfloat c2 = hypotf (A2, B2);
           gfloat A  = c2 * A1 / c1;
           gfloat B  = c2 * B1 / c1;
 


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