Fixed compiler warnings in test program by using wrapped functions.
This commit is contained in:
parent
1603534707
commit
991e2fb26c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue