From 29b9b163b92332cedd17db8c3ef46b42b8d49422 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 30 Aug 2024 15:12:22 -0400
Subject: [PATCH] example/game/01-snake: Make the "food" rectangles lighter
blue.
---
examples/game/01-snake/snake.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/game/01-snake/snake.c b/examples/game/01-snake/snake.c
index b27b57866b4e6..c9ce0ea9e1310 100644
--- a/examples/game/01-snake/snake.c
+++ b/examples/game/01-snake/snake.c
@@ -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);