From 6772f0968f4b787dde1f1345007278d5ca7b34cf Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 9 Apr 2018 22:27:58 +0000 Subject: [PATCH] .cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@11881 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Draw/BiCubic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/Draw/BiCubic.cpp b/uppsrc/Draw/BiCubic.cpp index d48d236cd..93874d542 100644 --- a/uppsrc/Draw/BiCubic.cpp +++ b/uppsrc/Draw/BiCubic.cpp @@ -16,7 +16,7 @@ double BicubicKernel(double x) r += 6 * x * x * x; if(xm1 > 0) r -= 4 * xm1 * xm1 * xm1; - return 1 / 6.0 * r; + return 0.16666666666666666 * r; } Image RescaleBicubic(const Image& img, Size sz, const Rect& sr, Gate progress) @@ -49,7 +49,7 @@ Image RescaleBicubic(const Image& img, Size sz, const Rect& sr, Gate p blue += weight * s.b; alpha += weight * s.a; } - } + } t->r = (int)fround(red); t->g = (int)fround(green); t->b = (int)fround(blue);