From 269c2476b615d05af0c4bf391251a5b4e30cadc2 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Fri, 12 Dec 2014 21:02:46 +0100 Subject: [PATCH] Replaced sqrt() with SDL_sqrt() in test program. --- test/testgesture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testgesture.c b/test/testgesture.c index d72d9c41f..0979a6081 100644 --- a/test/testgesture.c +++ b/test/testgesture.c @@ -103,7 +103,7 @@ void drawCircle(SDL_Surface* screen,float x,float y,float r,unsigned int c) float tx,ty; float xr; for(ty = (float)-SDL_fabs(r);ty <= (float)SDL_fabs((int)r);ty++) { - xr = (float)sqrt(r*r - ty*ty); + xr = (float)SDL_sqrt(r*r - ty*ty); if(r > 0) { /* r > 0 ==> filled circle */ for(tx=-xr+.5f;tx<=xr-.5;tx++) { setpix(screen,x+tx,y+ty,c);