[totem] backend: Use gdouble for the angle



commit 3ffc38eff5663a9ac5e29fad58507a437b3d9715
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 27 22:16:02 2012 +0100

    backend: Use gdouble for the angle
    
    As clutter does.

 src/backend/totem-aspect-frame.c |   16 ++++++++--------
 src/backend/totem-aspect-frame.h |    4 ++--
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/backend/totem-aspect-frame.c b/src/backend/totem-aspect-frame.c
index dbc63e0..e4d7bd7 100644
--- a/src/backend/totem-aspect-frame.c
+++ b/src/backend/totem-aspect-frame.c
@@ -137,7 +137,7 @@ totem_aspect_frame_get_preferred_height (ClutterActor *actor,
 
 static void
 totem_aspect_frame_set_rotation_internal (TotemAspectFrame *frame,
-					  gfloat            rotation,
+					  gdouble           rotation,
 					  gboolean          animate)
 {
   ClutterActor *actor;
@@ -192,7 +192,7 @@ totem_aspect_frame_allocate (ClutterActor           *actor,
   ClutterActor *child;
   ClutterActorBox child_box;
   gfloat aspect, child_aspect, width, height, box_width, box_height;
-  gfloat rotation;
+  gdouble rotation;
 
   TotemAspectFramePrivate *priv = TOTEM_ASPECT_FRAME (actor)->priv;
 
@@ -382,21 +382,21 @@ totem_aspect_frame_set_child   (TotemAspectFrame *frame,
 
 void
 totem_aspect_frame_set_rotation (TotemAspectFrame *frame,
-				 gfloat            rotation)
+				 gdouble           rotation)
 {
   g_return_if_fail (TOTEM_IS_ASPECT_FRAME (frame));
 
-  rotation = fmodf (rotation, 360.0);
+  rotation = fmod (rotation, 360.0);
 
   g_debug ("Setting rotation to '%lf'", rotation);
 
   totem_aspect_frame_set_rotation_internal (frame, rotation, TRUE);
 }
 
-gfloat
+gdouble
 totem_aspect_frame_get_rotation (TotemAspectFrame *frame)
 {
-  gfloat rotation;
+  gdouble rotation;
 
   g_return_val_if_fail (TOTEM_IS_ASPECT_FRAME (frame), 0.0);
 
@@ -404,8 +404,8 @@ totem_aspect_frame_get_rotation (TotemAspectFrame *frame)
 					 CLUTTER_Z_AXIS,
 					 NULL, NULL, NULL);
 
-  rotation = fmodf (rotation, 360.0);
-  g_debug ("Got rotation %f", rotation);
+  rotation = fmod (rotation, 360.0);
+  g_debug ("Got rotation %lf", rotation);
 
   return rotation;
 }
diff --git a/src/backend/totem-aspect-frame.h b/src/backend/totem-aspect-frame.h
index 4e46712..4ed8408 100644
--- a/src/backend/totem-aspect-frame.h
+++ b/src/backend/totem-aspect-frame.h
@@ -79,8 +79,8 @@ void            totem_aspect_frame_set_expand   (TotemAspectFrame *frame,
 gboolean        totem_aspect_frame_get_expand   (TotemAspectFrame *frame);
 
 void            totem_aspect_frame_set_rotation (TotemAspectFrame *frame,
-						 gfloat            rotation);
-gfloat          totem_aspect_frame_get_rotation (TotemAspectFrame *frame);
+						 gdouble           rotation);
+gdouble         totem_aspect_frame_get_rotation (TotemAspectFrame *frame);
 
 G_END_DECLS
 



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