[totem/gnome-3-8] backend: Simplify angle check



commit c5c6472e429aa01a83bf440ec7dafb376480a8a9
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 703d48e..4a3025b 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]