* src/image.c (image_set_rotation): Do negation at compile-time.

This commit is contained in:
Paul Eggert 2019-06-17 15:46:36 -07:00
parent da6deda8d4
commit 7c8cb70fa3

View 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;