example/game/01-snake: Make the "food" rectangles lighter blue.

This commit is contained in:
Ryan C. Gordon 2024-08-30 15:12:22 -04:00
parent f6fc5e2881
commit 29b9b163b9
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
continue;
set_rect_xy_(&r, i, j);
if (ct == SNAKE_CELL_FOOD)
SDL_SetRenderDrawColor(as->renderer, 0, 0, 128, 255);
SDL_SetRenderDrawColor(as->renderer, 80, 80, 255, 255);
else /* body */
SDL_SetRenderDrawColor(as->renderer, 0, 128, 0, 255);
SDL_RenderFillRect(as->renderer, &r);