1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 18:19:43 +01:00

Fix Graphics::map_option() not uppercasing selected text

Forgot to do this earlier, whoops.
This commit is contained in:
Misa 2020-06-22 18:29:52 -07:00 committed by Ethan Lee
parent 8c4b48fbfd
commit 8ed9ee1ca2

View file

@ -334,7 +334,9 @@ void Graphics::map_option(int opt, int num_opts, const std::string& text, bool s
if (selected) 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 else
{ {