aboutsummaryrefslogtreecommitdiffstats
path: root/src/snake-sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/snake-sdl.c')
-rw-r--r--src/snake-sdl.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/snake-sdl.c b/src/snake-sdl.c
index 47cf07e..587979d 100644
--- a/src/snake-sdl.c
+++ b/src/snake-sdl.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2022, yzrh <yzrh@noema.org>
+ * Copyright (c) 2019-2023, yzrh <yzrh@noema.org>
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -108,19 +108,22 @@ static void*
handler_rendering(void *args)
{
const SDL_Color fg = {
- COLOUR_FOREGROUND_R,
- COLOUR_FOREGROUND_G,
- COLOUR_FOREGROUND_B
+ .r = COLOUR_FOREGROUND_R,
+ .g = COLOUR_FOREGROUND_G,
+ .b = COLOUR_FOREGROUND_B,
+ .a = 255
};
const SDL_Color bg = {
- COLOUR_BACKGROUND_R,
- COLOUR_BACKGROUND_G,
- COLOUR_BACKGROUND_B
+ .r = COLOUR_BACKGROUND_R,
+ .g = COLOUR_BACKGROUND_G,
+ .b = COLOUR_BACKGROUND_B,
+ .a = 255
};
const SDL_Color bg_s = {
- COLOUR_BACKGROUND_SHADE_R,
- COLOUR_BACKGROUND_SHADE_G,
- COLOUR_BACKGROUND_SHADE_B
+ .r = COLOUR_BACKGROUND_SHADE_R,
+ .g = COLOUR_BACKGROUND_SHADE_G,
+ .b = COLOUR_BACKGROUND_SHADE_B,
+ .a = 255
};
char result_str[23];