mail[Wesnoth-commits] r41601 - /trunk/src/preferences_display.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by AI0867 on March 15, 2010 - 12:34:
Author: ai0867
Date: Mon Mar 15 12:34:55 2010
New Revision: 41601

URL: http://svn.gna.org/viewcvs/wesnoth?rev=41601&view=rev
Log:
Tweak an earlier change: if we detect a working resolution, save it

Modified:
    trunk/src/preferences_display.cpp

Modified: trunk/src/preferences_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/preferences_display.cpp?rev=41601&r1=41600&r2=41601&view=diff
==============================================================================
--- trunk/src/preferences_display.cpp (original)
+++ trunk/src/preferences_display.cpp Mon Mar 15 12:34:55 2010
@@ -120,7 +120,7 @@
                        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);




Related Messages


Powered by MHonArc, Updated Mon Mar 15 17:40:06 2010