This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 166de6a93e00b4160e9b9dcf92816db71c6a6143
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Thu Jun 15 15:29:16 2023 +0200
scaling: Cosmetics
---
src/lib/scale.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/lib/scale.c b/src/lib/scale.c
index a79c3fc..4c2b92a 100644
--- a/src/lib/scale.c
+++ b/src/lib/scale.c
@@ -59,8 +59,8 @@ __imlib_CalcPoints(int sw, int dw, int b1, int b2)
/* Center */
if (i < dw - b2)
{
- val = (b1 << 16);
- inc = ((sw - b1 - b2) << 16) / (dw - (b1 + b2));
+ val = b1 << 16;
+ inc = ((sw - (b1 + b2)) << 16) / (dw - (b1 + b2));
for (; i < dw - b2; i++)
{
p[i] = val >> 16;
@@ -122,12 +122,12 @@ __imlib_CalcApoints(int s, int d, int b1, int b2, int up)
p[i] = 0;
/* Center */
- if (d > (b1 + b2))
+ if (d > b1 + b2)
{
int ss, dd;
- ss = s - b1 - b2;
- dd = d - b1 - b2;
+ ss = s - (b1 + b2);
+ dd = d - (b1 + b2);
val = 0;
inc = (ss << 16) / dd;
for (; i < d - b2; i++)
@@ -152,7 +152,7 @@ __imlib_CalcApoints(int s, int d, int b1, int b2, int up)
p[i] = (1 << (16 + 14)) + (1 << 14);
/* Center */
- if (d > (b1 + b2))
+ if (d > b1 + b2)
{
int ss, dd, ap, Cp;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.