From 7c8cb70fa391a7540c27c3b6e7d5f85fbf4d281f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 17 Jun 2019 15:46:36 -0700 Subject: [PATCH] * src/image.c (image_set_rotation): Do negation at compile-time. --- src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image.c b/src/image.c index c08b898e7d8..866323ba6e5 100644 --- a/src/image.c +++ b/src/image.c @@ -2151,8 +2151,8 @@ image_set_rotation (struct image *img, matrix3x3 tm) matrix3x3_mult (rot, tmp, tmp2); /* Translate back. */ - t[2][0] = - (width * .5); - t[2][1] = - (height * .5); + t[2][0] = width * -.5; + t[2][1] = height * -.5; matrix3x3_mult (t, tmp2, tm); img->width = width; -- 2.39.2