Code cleanup: use sqrtf when input and output are float

This commit is contained in:
2014-03-28 14:53:37 +11:00
parent e6e7438181
commit 7199e2288f
20 changed files with 41 additions and 39 deletions

View File

@@ -1944,7 +1944,7 @@ static void widget_softshadow(const rcti *rect, int roundboxalign, const float r
glEnableClientState(GL_VERTEX_ARRAY);
for (step = 1; step <= (int)radout; step++) {
float expfac = sqrt(step / radout);
float expfac = sqrtf(step / radout);
round_box_shadow_edges(wtb.outer_v, &rect1, radin, UI_CNR_ALL, (float)step);