summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-03-08 17:32:19 +0100
committerBastien Nocera <hadess@hadess.net>2013-07-25 19:56:46 +0200
commitc5c6472e429aa01a83bf440ec7dafb376480a8a9 (patch)
tree45974b02c329040b1cd9e3fe2e8070facd00ba67
parent8d8d21f587060ed3090773f3229fb8e2ef4ba41f (diff)
downloadtotem-c5c6472e429aa01a83bf440ec7dafb376480a8a9.tar.gz
backend: Simplify angle check
https://bugzilla.gnome.org/show_bug.cgi?id=679169
-rw-r--r--src/backend/totem-aspect-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index 703d48e8b..4a3025b2d 100644
--- a/src/backend/totem-aspect-frame.c
+++ b/src/backend/totem-aspect-frame.c
@@ -147,7 +147,7 @@ totem_aspect_frame_get_size (TotemAspectFrame *frame,
clutter_actor_get_allocation_box (CLUTTER_ACTOR (frame), &box);
- if (rotation == 90.0 || rotation == 270.0)
+ if (fmod (rotation, 180.0) == 90.0)
{
w = box.y2 - box.y1;
h = box.x2 - box.x1;