From: Paul Eggert Date: Mon, 17 Jun 2019 22:46:36 +0000 (-0700) Subject: * src/image.c (image_set_rotation): Do negation at compile-time. X-Git-Tag: emacs-27.0.90~2433 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7c8cb70fa391a7540c27c3b6e7d5f85fbf4d281f;p=emacs.git * src/image.c (image_set_rotation): Do negation at compile-time. --- 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;