* src/image.c (image_set_rotation): Do negation at compile-time.
This commit is contained in:
parent
da6deda8d4
commit
7c8cb70fa3
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue