In the recently applied patch #1568 the widescreen threshold...

...was set at 5:3, which left out the very common 16:10 aspect
ratio. For instance my 1680x1050 resolution wasn't listed as
widescreen.

What this *doesn't fix* is the fact that my monitor supports other
16:10 resolutions such as 1440x900, but Wesnoth doesn't offer me that
choice. However "wesnoth -r 1440x900 -f" works perfect.

Related: bug #15623

List of 4:3 Monitor Resolutions
Resolution 	Name 	Aspect ratio
640x480 	SVGA 	4:3
800x600 	SVGA 	4:3
1024x768 	XGA 	4:3
1152x864 	XGA+ 	4:3
1280x960 	  	4:3
1400x1050 	SXGA+ 	4:3
1600x1200 	UXGA 	4:3
2048x1536 	QXGA 	4:3
3200x2400 	QUXGA 	4:3
4000x3000 	  	4:3
6400x4800 	HUXGA 	4:3

List of 16:9 Widescreen Resolutions
Resolution 	Name 	Aspect ratio
852x480 	EDTV 	16:9
1280x720 	WXGA 	16:9
1365x768 	WXGA 	16:9
1600x900 	WSXGA 	16:9
1920x1080 	WSXGA 	16:9

List of 16:10 Widescreen Resolutions
Resolution 	Name 	Aspect ratio
1440x900 	WXGA+ 	16:10
1680x1050 	WSXGA+ 	16:10
1920x1200 	WSXGA+ 	16:10
2560x1600 	WQXGA 	16:10
3840x2400 	WQUXGA 	16:10
7680x4800 	WHUXGA 	16:10
This commit is contained in:
Gabriel Morin 2010-04-05 01:28:07 +00:00
parent b97c72f333
commit 5270a7f8ba

View File

@ -531,9 +531,8 @@ 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)
/*widescreen threshold is 16:10*/
if ((double)j->first/j->second >= 16.0/10.0)
option << _(" (widescreen)");
options.push_back(option.str());
}