diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2019-06-17 15:46:36 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-06-17 15:46:54 -0700 |
| commit | 7c8cb70fa391a7540c27c3b6e7d5f85fbf4d281f (patch) | |
| tree | f74211440debaf5087a7297a1f5624daac82d5d3 | |
| parent | da6deda8d41c0a7ce4ddcc4b3569c7aa295238df (diff) | |
| download | emacs-7c8cb70fa391a7540c27c3b6e7d5f85fbf4d281f.tar.gz | |
* src/image.c (image_set_rotation): Do negation at compile-time.
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c index c08b898e7d8..866323ba6e5 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; |
