소스 검색

Replaced sqrt() with SDL_sqrt() in test program.

Philipp Wiesemann 10 년 전
부모
커밋
269c2476b6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/testgesture.c

+ 1 - 1
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);