From a42d520b85dfbaf9554dda0a94e2e3a929ce3b27 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 3 Nov 2024 21:12:51 +0100 Subject: [PATCH] minor code cleanup --- src/screens.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/screens.c b/src/screens.c index 0a4b9f48..9657ca04 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5000,13 +5000,11 @@ static void drawChooseTreeText(TreeInfo *ti, int y, boolean active) static void drawChooseTreeHeadExt(int type, char *title_string) { - int yoffset_sets = MENU_TITLE1_YPOS; - int yoffset_setup = MENU_TITLE_YPOS; - int yoffset = (type == TREE_TYPE_SCORE_ENTRY || - type == TREE_TYPE_LEVEL_DIR || - type == TREE_TYPE_LEVEL_NR ? yoffset_sets : yoffset_setup); + int y = (type == TREE_TYPE_SCORE_ENTRY || + type == TREE_TYPE_LEVEL_DIR || + type == TREE_TYPE_LEVEL_NR ? MENU_TITLE1_YPOS : MENU_TITLE_YPOS); - DrawTextSCentered(yoffset, FONT_TITLE_1, title_string); + DrawTextSCentered(y, FONT_TITLE_1, title_string); } static void drawChooseTreeHead(TreeInfo *ti) -- 2.34.1