[totem] backend: Make sure rotations are multiples of 90 degrees



commit 7ffb7596f7868d9801f88317611d06b740d85fd4
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 7 19:04:41 2013 +0100

    backend: Make sure rotations are multiples of 90 degrees

 src/backend/totem-aspect-frame.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index 800f1c2..079790c 100644
--- a/src/backend/totem-aspect-frame.c
+++ b/src/backend/totem-aspect-frame.c
@@ -383,6 +383,7 @@ totem_aspect_frame_set_rotation (TotemAspectFrame *frame,
                                 gdouble           rotation)
 {
   g_return_if_fail (TOTEM_IS_ASPECT_FRAME (frame));
+  g_return_if_fail (fmod (rotation, 90.0) == 0.0);
 
   rotation = fmod (rotation, 360.0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]