Fixed setting draw color for clear
This commit is contained in:
parent
6053ae5234
commit
05b0c40ffa
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ render(SDL_Renderer *renderer)
|
|||
Uint8 r, g, b;
|
||||
|
||||
/* Clear the screen */
|
||||
SDL_SetRenderDrawColor(0, 0, 0, 255);
|
||||
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
|
||||
SDL_SetRenderClear(renderer);
|
||||
|
||||
/* Come up with a random rectangle */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue