mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 18:12:31 +00:00
Fixed MP Create screen for low res.
This commit is contained in:
parent
5610b589e0
commit
cd0cb75ca8
@ -555,7 +555,7 @@ void create::layout_children(const SDL_Rect& rect)
|
|||||||
const int eras_menu_height = (ca.h / 2 - era_label_.height() -
|
const int eras_menu_height = (ca.h / 2 - era_label_.height() -
|
||||||
2 * border_size - cancel_game_.height());
|
2 * border_size - cancel_game_.height());
|
||||||
const int mods_menu_height = (ca.h / 2 - mod_label_.height() -
|
const int mods_menu_height = (ca.h / 2 - mod_label_.height() -
|
||||||
2 * border_size - cancel_game_.height());
|
3 * border_size - cancel_game_.height() - select_mod_.height());
|
||||||
|
|
||||||
// Dialog title
|
// Dialog title
|
||||||
ypos += title().height() + border_size;
|
ypos += title().height() + border_size;
|
||||||
@ -654,8 +654,8 @@ void create::layout_children(const SDL_Rect& rect)
|
|||||||
mods_menu_.set_max_width(menu_width);
|
mods_menu_.set_max_width(menu_width);
|
||||||
mods_menu_.set_max_height(mods_menu_height);
|
mods_menu_.set_max_height(mods_menu_height);
|
||||||
mods_menu_.set_location(xpos, ypos);
|
mods_menu_.set_location(xpos, ypos);
|
||||||
ypos += mods_menu_.height() + border_size;
|
|
||||||
if (mods_menu_.number_of_items() > 0) {
|
if (mods_menu_.number_of_items() > 0) {
|
||||||
|
ypos += mods_menu_.height() + border_size;
|
||||||
select_mod_.set_location(xpos, ypos);
|
select_mod_.set_location(xpos, ypos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user