[gimp/gimp-2-8] app: properly sample lanczos kernel luts



commit 7172911becb8f6ce1ded151dd113d727cad0d811
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sat Oct 13 14:56:46 2012 +0200

    app: properly sample lanczos kernel luts

 app/paint-funcs/scale-region.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/paint-funcs/scale-region.c b/app/paint-funcs/scale-region.c
index b4e7398..751005b 100644
--- a/app/paint-funcs/scale-region.c
+++ b/app/paint-funcs/scale-region.c
@@ -892,7 +892,7 @@ sinc (const gdouble x)
 gfloat *
 create_lanczos_lookup (void)
 {
-  const gdouble dx = LANCZOS_WIDTH / (gdouble) (LANCZOS_SAMPLES - 1);
+  const gdouble dx = LANCZOS_MIN;
 
   gfloat  *lookup = g_new (gfloat, LANCZOS_SAMPLES);
   gdouble  x      = 0.0;
@@ -911,7 +911,7 @@ create_lanczos_lookup (void)
 static gfloat *
 create_lanczos3_lookup (void)
 {
-  const gdouble dx = 3.0 / (gdouble) (LANCZOS_SAMPLES - 1);
+  const gdouble dx = LANCZOS_MIN;
 
   gfloat  *lookup = g_new (gfloat, LANCZOS_SAMPLES);
   gdouble  x      = 0.0;



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