URL: <http://gna.org/bugs/?20193>
Summary: wesnoth does not start fullscreen with wrong resolution set Project: Battle for Wesnoth Submitted by: peterdes Submitted on: Sat 22 Sep 2012 03:55:01 PM GMT Category: Bug Severity: 3 - Normal Priority: 5 - Normal Item Group: User Interface Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Release: 1.10.4 Operating System: Arch Linux _______________________________________________________ Details: Steps to reproduce: 1. Set the xresolution and yresolution to some arbitrary numbers, f.ex. 1920x1080. 2. Let me have a 1280x1024 screen (different resolution than the above) and start wesnoth in fullscreen mode (either with a --fullscreen option or with the fullscreen set in preferences). 3. Wesnoth crashes (exits with error code 1) with the following command-line messages: (...) Checking video mode: 1920x1080x32... setting mode to 1920x1080x32 required video mode, 1920x1080x32 is not supported could not initialize display (...) I have attached a log of wesnoth -f --log-debug=all > wesnoth.log 2>&1 One may repair it by setting proper xresolution and yresolution in the preferences file, but (as I guess) a usual user should never be forced to edit it manually. If fullscreen is set in the preferences (either by default or by user using another resolution earlier), then one is not able to launch wesnoth just by running "wesnoth". Possible solutions: 1. Wesnoth may try to go windowed mode after failing to run fullscreen. 2. Wesnoth may ask about the resolution if it encounters any problems (indeed it complains about resolutions when switching from windowed to fullscreen mode with the resolutions as mentionet above). 3. Wesnoth may try to guess the proper resolution for fullscreen mode. What is more, wesnoth may ask user to choose the proper resolution when encountering any problems changing from windowed to fullscreen mode. I have not encountered this problem on Fedora Linux or Windows - on these, wesnoth running in a bad resolution is just scaled (ugly!). It may be a problem with SDL, but I think that this is not a bug of SDL that it does not run in an inproper mode. Moreover, if(failed) run_windowed(); is... simple and elegant, I guess? _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sat 22 Sep 2012 03:55:01 PM GMT Name: wesnoth.log Size: 12kB By: peterdes I attach command line output of wesnoth. <http://gna.org/bugs/download.php?file_id=16599> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?20193> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs