Fixed compiler warnings in test program by using wrapped functions.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 14 Jul 2013 19:56:22 +0200
changeset 74512ce2d2c71156
parent 7450 29654d59c439
child 7452 fae80e5464e2
Fixed compiler warnings in test program by using wrapped functions.
test/testgesture.c
     1.1 --- a/test/testgesture.c	Sun Jul 14 19:53:50 2013 +0200
     1.2 +++ b/test/testgesture.c	Sun Jul 14 19:56:22 2013 +0200
     1.3 @@ -141,8 +141,8 @@
     1.4  
     1.5  void drawKnob(SDL_Surface* screen,Knob k) {
     1.6    drawCircle(screen,k.p.x*screen->w,k.p.y*screen->h,k.r*screen->w,0xFFFFFF);
     1.7 -  drawCircle(screen,(k.p.x+k.r/2*cosf(k.ang))*screen->w,
     1.8 -                (k.p.y+k.r/2*sinf(k.ang))*screen->h,k.r/4*screen->w,0);
     1.9 +  drawCircle(screen,(k.p.x+k.r/2*SDL_cosf(k.ang))*screen->w,
    1.10 +                (k.p.y+k.r/2*SDL_sinf(k.ang))*screen->h,k.r/4*screen->w,0);
    1.11  }
    1.12  
    1.13  void DrawScreen(SDL_Surface* screen)