be more float cast specific.
authorCarsten Haitzler <raster@rasterman.com>
Fri, 5 Mar 2010 04:14:52 +0000 (04:14 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Fri, 5 Mar 2010 04:14:52 +0000 (04:14 +0000)
SVN revision: 46889

data/themes/default.edc

index efe7ad2..5d580b6 100644 (file)
@@ -9858,26 +9858,26 @@ collections { /* begin the collection of edje groups that are in this file */
            timer(60.0 - (second), "clock_cb", 1);
 #endif
             custom_state(PART:"minutes", "default", 0.0);
-            set_state_val(PART:"minutes", STATE_MAP_ROT_Z, (minute * 360.0) / 60.0);
+            set_state_val(PART:"minutes", STATE_MAP_ROT_Z, (float(minute) * 360.0) / 60.0);
             if      (h < 22) set_state_val(PART:"minutes", STATE_IMAGE, IMAGE:"ch-m1-3.png");
             else if (h < 44) set_state_val(PART:"minutes", STATE_IMAGE, IMAGE:"ch-m1-2.png");
             else              set_state_val(PART:"minutes", STATE_IMAGE, IMAGE:"ch-m1.png");
             set_state(PART:"minutes", "custom", 0.0);
             custom_state(PART:"minutes-sh", "default", 0.0);
-            set_state_val(PART:"minutes-sh", STATE_MAP_ROT_Z, (minute * 360.0) / 60.0);
+            set_state_val(PART:"minutes-sh", STATE_MAP_ROT_Z, (float(minute) * 360.0) / 60.0);
             if      (h < 22) set_state_val(PART:"minutes-sh", STATE_IMAGE, IMAGE:"ch-m2-3.png");
             else if (h < 44) set_state_val(PART:"minutes-sh", STATE_IMAGE, IMAGE:"ch-m2-2.png");
             else              set_state_val(PART:"minutes-sh", STATE_IMAGE, IMAGE:"ch-m2.png");
             set_state(PART:"minutes-sh", "custom", 0.0);
             
             custom_state(PART:"hour", "default", 0.0);
-            set_state_val(PART:"hour", STATE_MAP_ROT_Z, ((hour + (minute / 60.0)) * 360.0) / 12.0);
+            set_state_val(PART:"hour", STATE_MAP_ROT_Z, ((float(hour) + (float(minute) / 60.0)) * 360.0) / 12.0);
             if      (h < 22) set_state_val(PART:"hour", STATE_IMAGE, IMAGE:"ch-h1-3.png");
             else if (h < 44) set_state_val(PART:"hour", STATE_IMAGE, IMAGE:"ch-h1-2.png");
             else              set_state_val(PART:"hour", STATE_IMAGE, IMAGE:"ch-h1.png");
             set_state(PART:"hour", "custom", 0.0);
             custom_state(PART:"hour-sh", "default", 0.0);
-            set_state_val(PART:"hour-sh", STATE_MAP_ROT_Z, ((hour + (minute / 60.0)) * 360.0) / 12.0);
+            set_state_val(PART:"hour-sh", STATE_MAP_ROT_Z, ((float(hour) + (float(minute) / 60.0)) * 360.0) / 12.0);
             if      (h < 22) set_state_val(PART:"hour-sh", STATE_IMAGE, IMAGE:"ch-h2-3.png");
             else if (h < 44) set_state_val(PART:"hour-sh", STATE_IMAGE, IMAGE:"ch-h2-2.png");
             else              set_state_val(PART:"hour-sh", STATE_IMAGE, IMAGE:"ch-h2.png");