emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 7c8cb70: * src/image.c (image_set_rotation): Do neg


From: Paul Eggert
Subject: [Emacs-diffs] master 7c8cb70: * src/image.c (image_set_rotation): Do negation at compile-time.
Date: Mon, 17 Jun 2019 18:46:59 -0400 (EDT)

branch: master
commit 7c8cb70fa391a7540c27c3b6e7d5f85fbf4d281f
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    * 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 c08b898..866323b 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]