Commit 7c8cb70f authored by Paul Eggert's avatar Paul Eggert

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

parent da6deda8
Pipeline #2136 failed with stage
in 72 minutes and 25 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment