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


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

Header


Content

Posted by koraq on March 14, 2008 - 18:51:
Author: mordante
Date: Fri Mar 14 18:51:15 2008
New Revision: 24641

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24641&view=rev
Log:
Add tiny and small gui resolutions in the hardcoded list.

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=24641&r1=24640&r2=24641&view=diff
==============================================================================
--- trunk/src/preferences_display.cpp (original)
+++ trunk/src/preferences_display.cpp Fri Mar 14 18:51:15 2008
@@ -406,9 +406,13 @@
        // means that all dimensions are supported/possible.
        if(modes == reinterpret_cast<SDL_Rect**>(-1)) {
                std::cerr << "Can support any video mode\n";
-               // SDL says that all modes are possible, 
-               // so it's OK to use a hardcoded list here.
+               // SDL says that all modes are possible, so it's OK to use a 
+               // hardcoded list here. Include tiny and small gui since they
+               // will be filter out later if not needed.
                static const SDL_Rect scr_modes[] = {
+                       { 0, 0,  320, 240 },    
+                       { 0, 0,  640, 480 },    
+                       { 0, 0,  800, 480 },    // small-gui (EeePC 
resolution)
                        { 0, 0,  800, 600 },
                        { 0, 0, 1024, 768 },
                        { 0, 0, 1280, 960 },
@@ -419,6 +423,9 @@
                        &scr_modes[1],
                        &scr_modes[2],
                        &scr_modes[3],
+                       &scr_modes[4],
+                       &scr_modes[5],
+                       &scr_modes[6],
                        NULL
                };
 




Related Messages


Powered by MHonArc, Updated Fri Mar 14 19:01:55 2008