X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=ed937406044ecf2e7479b0f47ca1288335f53805;hb=0a340d881161f4009a79dc326f3579a70dc35b5b;hp=5b207805d1ee1647919aae723d91d6954660a35f;hpb=fa628a204ea4662806244b0ed994a48b40ece2ca;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 5b207805..ed937406 100644 --- a/src/screens.c +++ b/src/screens.c @@ -61,6 +61,7 @@ #define MAX_MENU_ENTRIES_ON_SCREEN (SCR_FIELDY - 2) #define MENU_SCREEN_START_YPOS 2 #define MENU_SCREEN_VALUE_XPOS 14 +#define MENU_SCREEN_MAX_XPOS (SCR_FIELDX - 1) #define MENU_TITLE1_YPOS 8 #define MENU_TITLE2_YPOS 46 @@ -2232,8 +2233,8 @@ static void drawSetupValue(int pos) int font_nr = FONT_VALUE_1; int type = setup_info[pos].type; void *value = setup_info[pos].value; - char *value_string = (!(type & TYPE_GHOSTED) ? getSetupValue(type, value) : - "n/a"); + char *value_string = getSetupValue(type, value); + int i; if (value_string == NULL) return; @@ -2267,8 +2268,14 @@ static void drawSetupValue(int pos) font_nr = (*(boolean *)value ? FONT_OPTION_ON : FONT_OPTION_OFF); } +#if 1 + for (i = xpos; i <= MENU_SCREEN_MAX_XPOS; i++) + DrawText(mSX + i * 32, mSY + ypos * 32, " ", font_nr); +#else DrawText(mSX + xpos * 32, mSY + ypos * 32, (xpos == 3 ? " " : " "), font_nr); +#endif + DrawText(mSX + xpos * 32, mSY + ypos * 32, value_string, font_nr); }