Elm glayer: Changed some values from float to double.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 18 Jul 2011 06:24:29 +0000 (06:24 +0000)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 24 Oct 2011 09:18:07 +0000 (18:18 +0900)
Patch by Aharon Hillel.

git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@61464 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/Elementary.h.in
src/lib/elm_gesture_layer.c

index 87f0a55..27235e5 100644 (file)
@@ -4795,8 +4795,8 @@ extern "C" {
      {
         Evas_Coord x, y;       /**< Holds zoom center point reported to user  */
         Evas_Coord radius; /**< Holds radius between fingers reported to user */
-        float zoom;            /**< Zoom value: 1.0 means no zoom             */
-        float momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
+        double zoom;            /**< Zoom value: 1.0 means no zoom             */
+        double momentum;        /**< Zoom momentum: zoom growth per second (NOT YET SUPPORTED) */
      };
 
    /**
index 0c24809..8c6820e 100644 (file)
@@ -223,8 +223,8 @@ struct _Widget_Data
    int line_min_length;
    Evas_Coord zoom_tolerance;
    Evas_Coord line_tolerance;
-   float zoom_wheel_factor; /* mouse wheel zoom steps */
-   float factor; /* used for zoom factor */
+   double zoom_wheel_factor; /* mouse wheel zoom steps */
+   double factor; /* used for zoom factor */
    double  rotate_tolerance;
 
    double zoom_step;
@@ -2042,11 +2042,11 @@ get_finger_gap_length(Evas_Coord x1, Evas_Coord y1, Evas_Coord x2,
  * @ingroup Elm_Gesture_Layer
  */
 /* FIXME change float to double */
-static float
+static double
 compute_zoom(Zoom_Type *st, Evas_Coord x1, Evas_Coord y1, unsigned int tm1,
-      Evas_Coord x2, Evas_Coord y2, unsigned int tm2, float factor)
+      Evas_Coord x2, Evas_Coord y2, unsigned int tm2, double factor)
 {
-   float rt = 1.0;
+   double rt = 1.0;
    Evas_Coord diam = get_finger_gap_length(x1, y1, x2, y2,
          &st->info.x, &st->info.y);