Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed compiler warnings in test program by using wrapped functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Jul 14, 2013
1 parent 65c6e62 commit 1ea6505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/testgesture.c
Expand Up @@ -141,8 +141,8 @@ void drawCircle(SDL_Surface* screen,float x,float y,float r,unsigned int c)

void drawKnob(SDL_Surface* screen,Knob k) {
drawCircle(screen,k.p.x*screen->w,k.p.y*screen->h,k.r*screen->w,0xFFFFFF);
drawCircle(screen,(k.p.x+k.r/2*cosf(k.ang))*screen->w,
(k.p.y+k.r/2*sinf(k.ang))*screen->h,k.r/4*screen->w,0);
drawCircle(screen,(k.p.x+k.r/2*SDL_cosf(k.ang))*screen->w,
(k.p.y+k.r/2*SDL_sinf(k.ang))*screen->h,k.r/4*screen->w,0);
}

void DrawScreen(SDL_Surface* screen)
Expand Down

0 comments on commit 1ea6505

Please sign in to comment.