Using SDL_ShowSimpleMessageBox()
we should show a helping window but on my screen, it do not show the right characters, as if the encoding was wrong:
Is there a way to fix this?
Below is the concerned code:
void show_help_message_box()
{
const char* message =
"Press 'h' to open the help message box (here).\n"
"Press 'r' to restart.\n"
"Press 'z' to undo.\n"
"Press 'y' to redo.\n"
"Press 's' to save your current game.\n"
"Press 'l' to load a game.\n"
"Press 'q' or 'escap' to quit.\n";
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_INFORMATION, "Help", message, NULL);
}
I'm on Manjaro Linux 22.0.4