different blue shading for big and small widget font, part 2

This commit is contained in:
Fabian Greffrath 2024-11-08 15:02:43 +01:00
parent 12dba5a84f
commit 2bd08f01b5
2 changed files with 4 additions and 2 deletions

View File

@ -820,7 +820,8 @@ static void UpdateStTime(sbe_widget_t *widget, player_t *player)
if (time_scale != 100) if (time_scale != 100)
{ {
offset += offset +=
M_snprintf(string, sizeof(string), BLUE_S "%d%% ", time_scale); M_snprintf(string, sizeof(string), "%s%d%% ",
(widget->font == stcfnt) ? BLUE2_S : BLUE1_S, time_scale);
} }
if (totalleveltimes) if (totalleveltimes)

View File

@ -93,7 +93,8 @@ typedef enum
#define BROWN_S "\x1b\x34" #define BROWN_S "\x1b\x34"
#define GOLD_S "\x1b\x35" #define GOLD_S "\x1b\x35"
#define RED_S "\x1b\x36" #define RED_S "\x1b\x36"
#define BLUE_S "\x1b\x37" #define BLUE1_S "\x1b\x37"
#define BLUE2_S "\x1b\x3a"
// jff 1/16/98 end palette color range additions // jff 1/16/98 end palette color range additions