summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-03-07 19:04:41 +0100
committerBastien Nocera <hadess@hadess.net>2013-07-25 19:56:07 +0200
commit3653b8885061219494072139d5722fa92e6df9d8 (patch)
tree532f4df660f7a66baadd9c3d28ba9684e7892aa9
parent241420acfa61e32b231d9781b9c2326b7a3a612b (diff)
downloadtotem-3653b8885061219494072139d5722fa92e6df9d8.tar.gz
backend: Make sure rotations are multiples of 90 degrees
-rw-r--r--src/backend/totem-aspect-frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index 800f1c239..079790c12 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);