use float constants instead of double as computations

are done on float numbers


SVN revision: 47839
This commit is contained in:
Vincent Torri 2010-04-08 17:41:00 +00:00
parent 4a54173b20
commit 438f002794
1 changed files with 4 additions and 4 deletions

View 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);