]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/image.c (image_set_rotation): Do negation at compile-time.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jun 2019 22:46:36 +0000 (15:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jun 2019 22:46:54 +0000 (15:46 -0700)
src/image.c

index c08b898e7d8da959aeed5bc4151b7083f8dd8b3a..866323ba6e54409cb9f140d5e5741931bb846ec1 100644 (file)
@@ -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;