From 42a2ff7e85fbf341f4c274ce5498a2ce3792f3a4 Mon Sep 17 00:00:00 2001 From: Nils Kneuper Date: Mon, 14 Feb 2011 11:32:48 +0000 Subject: [PATCH] use the smallgui load dialog as default, ...otherwise with <600px vertically there will be glitches the load dialog is a mess anyway and waiting for a rework done in GUI2 once stuff like treeview and such is available --- src/dialogs.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/dialogs.cpp b/src/dialogs.cpp index d364a642f1a..b850a47ca9a 100644 --- a/src/dialogs.cpp +++ b/src/dialogs.cpp @@ -623,11 +623,15 @@ std::string load_game_dialog(display& disp, const config& game_config, bool* sho // create an option for whether the replay should be shown or not if(show_replay != NULL) { lmenu.add_option(_("Show replay"), false, - game_config::small_gui ? gui::dialog::BUTTON_CHECKBOX : gui::dialog::BUTTON_STANDARD); + // use smallgui layout as default, otherwise the load screen glitches at low res! + //game_config::small_gui ? gui::dialog::BUTTON_CHECKBOX : gui::dialog::BUTTON_STANDARD); + gui::dialog::BUTTON_CHECKBOX); } if(cancel_orders != NULL) { lmenu.add_option(_("Cancel orders"), false, - game_config::small_gui ? gui::dialog::BUTTON_STANDARD : gui::dialog::BUTTON_EXTRA); + // use smallgui layout as default, otherwise the load screen glitches at low res! + //game_config::small_gui ? gui::dialog::BUTTON_STANDARD : gui::dialog::BUTTON_EXTRA); + gui::dialog::BUTTON_STANDARD); } lmenu.add_button(new gui::standard_dialog_button(disp.video(),_("OK"),0,false), gui::dialog::BUTTON_STANDARD); lmenu.add_button(new gui::standard_dialog_button(disp.video(),_("Cancel"),1,true), gui::dialog::BUTTON_STANDARD); @@ -636,7 +640,9 @@ std::string load_game_dialog(display& disp, const config& game_config, bool* sho gui::dialog_button_info delete_button(&save_deleter,_("Delete Save")); lmenu.add_button(delete_button, - game_config::small_gui ? gui::dialog::BUTTON_HELP : gui::dialog::BUTTON_EXTRA); + // use smallgui layout as default, otherwise the load screen glitches at low res! + //game_config::small_gui ? gui::dialog::BUTTON_HELP : gui::dialog::BUTTON_EXTRA); + gui::dialog::BUTTON_HELP); int res = lmenu.show();