Tweak an earlier change: if we detect a working resolution, save it

This commit is contained in:
Alexander van Gessel 2010-03-15 12:34:55 +01:00
parent adcb1063a5
commit 87e12e1333

View File

@ -120,7 +120,7 @@ void set_fullscreen(CVideo& video, const bool ison)
int tmp_flags = flags;
std::pair<int,int> tmp_res;
if(detect_video_settings(video, tmp_res, bpp, tmp_flags)) {
video.setMode(tmp_res.first, tmp_res.second, bpp, tmp_flags);
set_resolution(video, tmp_res.first, tmp_res.second);
// TODO: see if below line is actually needed, possibly for displays that only support 16 bbp
} else if(video.modePossible(1024,768,16,flags)) {
set_resolution(video, 1024, 768);