summaryrefslogtreecommitdiff
path: root/frontends/sdl/cetris_sdl.c
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-07-20 10:48:34 -0400
committerAndrew Opalach <andrew@akon.city> 2026-07-20 10:48:34 -0400
commitbfa8deff7a7d3b384870f79b27ed1b34038645a5 (patch)
tree20cfb8e02232879228bedb62995e4c6618592f69 /frontends/sdl/cetris_sdl.c
parent72f5ec3ce777fc05150856f1841e60b0f5c9f8f7 (diff)
downloadcetris-bfa8deff7a7d3b384870f79b27ed1b34038645a5.tar.gz
cetris-bfa8deff7a7d3b384870f79b27ed1b34038645a5.tar.bz2
cetris-bfa8deff7a7d3b384870f79b27ed1b34038645a5.zip
make sure colors always get set in sdl frontendHEADmaster
Diffstat (limited to 'frontends/sdl/cetris_sdl.c')
-rw-r--r--frontends/sdl/cetris_sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/sdl/cetris_sdl.c b/frontends/sdl/cetris_sdl.c
index 3bb6cb8..a919ad2 100644
--- a/frontends/sdl/cetris_sdl.c
+++ b/frontends/sdl/cetris_sdl.c
@@ -521,6 +521,8 @@ void load_config(cetris_ui *ui, game_board_t *board) {
board->game.config.win_condition = twenty_line_sprint;
board->game.config.wait_on_clear = 0;
+ ui->colors = light_mode;
+
ini_parser p;
if (load_ini_file(&p, "config.ini")) {
char* das = get_ini_value(&p, "das", "das");
@@ -577,8 +579,6 @@ void load_config(cetris_ui *ui, game_board_t *board) {
ui->colors = dark_mode;
}
free(dark);
- } else {
- ui->colors = light_mode;
}
char *skin = get_ini_value(&p, "ui", "skin");