From 7c55ea78326b6dc2e23fede3995e334ba1d16692 Mon Sep 17 00:00:00 2001 From: Dav999-v Date: Sun, 15 Jan 2023 05:26:15 +0100 Subject: [PATCH] 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. --- desktop_version/src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index a45e4975..9d044e42 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -891,10 +891,11 @@ static void unfocused_run(void) { graphics.fill_rect(0, 0, 0); #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); - graphics.bprint(5, FLIP(120), loc::gettext("[click to resume]"), 196 - help.glow, 255 - help.glow, 196 - help.glow, true); - graphics.bprint(5, FLIP(220), loc::gettext("Press M to mute in game"), 164 - help.glow, 196 - help.glow, 164 - help.glow, true); - graphics.bprint(5, FLIP(230), loc::gettext("Press N to mute music only"), 164 - help.glow, 196 - help.glow, 164 - help.glow, true); + uint32_t flags = PR_CEN | PR_BOR | PR_FONT_IDX(loc::langmeta.font_idx); + font::print(flags | PR_CJK_HIGH, -1, FLIP(110), loc::gettext("Game paused"), 196 - help.glow, 255 - help.glow, 196 - help.glow); + font::print(flags | PR_CJK_LOW, -1, FLIP(120), loc::gettext("[click to resume]"), 196 - help.glow, 255 - help.glow, 196 - help.glow); + 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 } graphics.render();