test/testgesture.c
changeset 7451 2ce2d2c71156
parent 7191 75360622e65f
child 7517 965d57022c01
equal deleted inserted replaced
7450:29654d59c439 7451:2ce2d2c71156
   139   }
   139   }
   140 }
   140 }
   141 
   141 
   142 void drawKnob(SDL_Surface* screen,Knob k) {
   142 void drawKnob(SDL_Surface* screen,Knob k) {
   143   drawCircle(screen,k.p.x*screen->w,k.p.y*screen->h,k.r*screen->w,0xFFFFFF);
   143   drawCircle(screen,k.p.x*screen->w,k.p.y*screen->h,k.r*screen->w,0xFFFFFF);
   144   drawCircle(screen,(k.p.x+k.r/2*cosf(k.ang))*screen->w,
   144   drawCircle(screen,(k.p.x+k.r/2*SDL_cosf(k.ang))*screen->w,
   145                 (k.p.y+k.r/2*sinf(k.ang))*screen->h,k.r/4*screen->w,0);
   145                 (k.p.y+k.r/2*SDL_sinf(k.ang))*screen->h,k.r/4*screen->w,0);
   146 }
   146 }
   147 
   147 
   148 void DrawScreen(SDL_Surface* screen)
   148 void DrawScreen(SDL_Surface* screen)
   149 {
   149 {
   150   int i;
   150   int i;