mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-16 16:09:42 +01:00
Fix pause screen font on language screen with other language selected
If you for example have your VVVVVV set to English, have the option for Chinese selected, and then the window loses focus, the English pause screen would show up in the Chinese font. This is now fixed.
This commit is contained in:
parent
df4e351b30
commit
7c55ea7832
1 changed files with 5 additions and 4 deletions
|
@ -891,10 +891,11 @@ static void unfocused_run(void)
|
||||||
{
|
{
|
||||||
graphics.fill_rect(0, 0, 0);
|
graphics.fill_rect(0, 0, 0);
|
||||||
#define FLIP(YPOS) graphics.flipmode ? 232 - YPOS : YPOS
|
#define FLIP(YPOS) graphics.flipmode ? 232 - YPOS : YPOS
|
||||||
graphics.bprint(5, FLIP(110), loc::gettext("Game paused"), 196 - help.glow, 255 - help.glow, 196 - help.glow, true);
|
uint32_t flags = PR_CEN | PR_BOR | PR_FONT_IDX(loc::langmeta.font_idx);
|
||||||
graphics.bprint(5, FLIP(120), loc::gettext("[click to resume]"), 196 - help.glow, 255 - help.glow, 196 - help.glow, true);
|
font::print(flags | PR_CJK_HIGH, -1, FLIP(110), loc::gettext("Game paused"), 196 - help.glow, 255 - help.glow, 196 - help.glow);
|
||||||
graphics.bprint(5, FLIP(220), loc::gettext("Press M to mute in game"), 164 - help.glow, 196 - help.glow, 164 - help.glow, true);
|
font::print(flags | PR_CJK_LOW, -1, FLIP(120), loc::gettext("[click to resume]"), 196 - help.glow, 255 - help.glow, 196 - help.glow);
|
||||||
graphics.bprint(5, FLIP(230), loc::gettext("Press N to mute music only"), 164 - help.glow, 196 - help.glow, 164 - help.glow, true);
|
font::print(flags | PR_CJK_HIGH, -1, FLIP(220), loc::gettext("Press M to mute in game"), 164 - help.glow, 196 - help.glow, 164 - help.glow);
|
||||||
|
font::print(flags, -1, FLIP(230), loc::gettext("Press N to mute music only"), 164 - help.glow, 196 - help.glow, 164 - help.glow);
|
||||||
#undef FLIP
|
#undef FLIP
|
||||||
}
|
}
|
||||||
graphics.render();
|
graphics.render();
|
||||||
|
|
Loading…
Reference in a new issue