use float constants instead of double as computations
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Apr 2010 17:41:00 +0000 (17:41 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Apr 2010 17:41:00 +0000 (17:41 +0000)
are done on float numbers

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@47839 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_gradient_sinusoidal.c

index 7c06567..4cfc6f1 100644 (file)
@@ -341,10 +341,10 @@ sinusoidal_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa)
 }
 
 #define SETUP_SINU_FILL \
-   a00 = gdata->sp * (axx / 65536.0); \
-   a01 = gdata->sp * (axy / 65536.0); \
-   a10 = ayx / 65536.0; \
-   a11 = ayy / 65536.0; \
+   a00 = gdata->sp * (axx / 65536.0f); \
+   a01 = gdata->sp * (axy / 65536.0f); \
+   a10 = ayx / 65536.0f; \
+   a11 = ayy / 65536.0f; \
    xf = (a00 * x) + (a01 * y); \
    yf = (a10 * x) + (a11 * y);