From 8ed9ee1ca2bbc93b66fd6d6cc7f20ab0a7a3778a Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 22 Jun 2020 18:29:52 -0700 Subject: [PATCH] Fix Graphics::map_option() not uppercasing selected text Forgot to do this earlier, whoops. --- desktop_version/src/Graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index f5f3aece..cde449e1 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -334,7 +334,9 @@ void Graphics::map_option(int opt, int num_opts, const std::string& text, bool s if (selected) { - Print(x - 16, y, "[ " + text + " ]", 196, 196, 255 - help.glow); + std::string text_upper(text); + std::transform(text_upper.begin(), text_upper.end(), text_upper.begin(), ::toupper); + Print(x - 16, y, "[ " + text_upper + " ]", 196, 196, 255 - help.glow); } else {