mirror of https://github.com/libsdl-org/SDL.git
examples/renderer/03-lines: use a gray background.
This commit is contained in:
parent
fd0ce75e2e
commit
2e3e5abd7d
|
|
@ -56,7 +56,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
|
|||
};
|
||||
|
||||
/* as you can see from this, rendering draws over whatever was drawn before it. */
|
||||
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255); /* black, full alpha */
|
||||
SDL_SetRenderDrawColor(renderer, 100, 100, 100, 255); /* black, full alpha */
|
||||
SDL_RenderClear(renderer); /* start with a blank canvas. */
|
||||
|
||||
/* You can draw lines, one at a time, like these brown ones... */
|
||||
|
|
|
|||
Loading…
Reference in New Issue