Make the minimum screen size 480x800.

Removes some only gui2 hacks to allow 320x240 to test gui2 and remove
the small gui specific code.

If it doesn't work nicely on 480x800 600x800 will be the minimum again.
This commit is contained in:
Mark de Wever 2011-02-13 18:41:47 +00:00
parent 16b7fdea0c
commit e78f048b24

View file

@ -178,27 +178,12 @@ void _set_scroll_to_action(bool ison)
int min_allowed_width()
{
// Most things (not all) in the new widgets library work properly on tiny
// gui resolution. So allow them, which makes initial testing easier.
if(gui2::new_widgets) {
return 320;
}
return 800;
}
int min_allowed_height()
{
// Most things (not all) in the new widgets library work properly on tiny
// gui resolution. So allow them, which makes initial testing easier.
if(gui2::new_widgets) {
return 240;
}
if (game_config::small_gui)
return 480;
return 600;
return 480;
}
std::pair<int,int> resolution()