Replaced sqrt() with SDL_sqrt() in test program.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 12 Dec 2014 21:02:46 +0100
changeset 9274f95cc158ed4f
parent 9273 9f1c18388f2c
child 9275 a40415296b77
Replaced sqrt() with SDL_sqrt() in test program.
test/testgesture.c
     1.1 --- a/test/testgesture.c	Fri Dec 12 21:00:25 2014 +0100
     1.2 +++ b/test/testgesture.c	Fri Dec 12 21:02:46 2014 +0100
     1.3 @@ -103,7 +103,7 @@
     1.4    float tx,ty;
     1.5    float xr;
     1.6    for(ty = (float)-SDL_fabs(r);ty <= (float)SDL_fabs((int)r);ty++) {
     1.7 -    xr = (float)sqrt(r*r - ty*ty);
     1.8 +    xr = (float)SDL_sqrt(r*r - ty*ty);
     1.9      if(r > 0) { /* r > 0 ==> filled circle */
    1.10        for(tx=-xr+.5f;tx<=xr-.5;tx++) {
    1.11      setpix(screen,x+tx,y+ty,c);