wrap shorter lines in tinygui mode

This commit is contained in:
Yann Dirson 2004-11-05 23:52:10 +00:00
parent 79abfd3e89
commit c2f3e0baf0

View file

@ -439,7 +439,11 @@ int show_dialog(display& disp, surface image,
menu menu_(disp,menu_items,type == MESSAGE);
#ifdef USE_TINY_GUI
const int max_line_length = 30;
#else
const int max_line_length = 54;
#endif
std::string message = msg;
text_to_lines(message,max_line_length);