[totem] backend: Simplify angle check
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Simplify angle check
- Date: Mon, 11 Mar 2013 10:41:20 +0000 (UTC)
commit 94a3d2b39b044e2dd68edb7db4f1fe9fccddbb35
Author: Bastien Nocera <hadess hadess net>
Date: Fri Mar 8 17:32:19 2013 +0100
backend: Simplify angle check
https://bugzilla.gnome.org/show_bug.cgi?id=679169
src/backend/totem-aspect-frame.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index fbb51b1..7dee217 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]