Mark widescreen resolutions in selection dialog.

Implements bug #15623 with patch #1568.
This commit is contained in:
Mark de Wever 2010-04-02 09:19:29 +00:00
parent 17f8eaa475
commit d78f81d83f
3 changed files with 9 additions and 0 deletions

View file

@ -17,6 +17,8 @@ Version 1.9.0-svn:
* Added "animated" logo to the --new-widgets title screen
* Fixed the language is refreshed after the language is changed in the
--new-widgets title screen
* Implemented bug #15623 (patch #1568): On change resolution screen,
widescreen resolutions are now marked as such
* WML Engine:
* Deprecated [set_variable]'s random key, use rand instead
* Renamed [unit][status] healable to unhealable so it can default to 'no'

View file

@ -841,6 +841,9 @@
[entry]
name = "Daniel Bruegmann"
[/entry]
[entry]
name= "Denny Vaccaro (endercoaster)"
[/entry]
[entry]
name = "Doug Rosvick (dlr365)"
wikiuser = "dlr365"

View file

@ -531,6 +531,10 @@ bool show_video_mode_dialog(display& disp)
option << DEFAULT_ITEM;
option << j->first << "x" << j->second;
/*widescreen threshold is 5:3 to mark aspect ratios just
a hair under 16:9 as widescreen*/
if ((double)j->first/j->second>=5.0/3)
option << _(" (widescreen)");
options.push_back(option.str());
}