mail[Wesnoth-commits] r43353 - /trunk/src/generate_report.cpp


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

Header


Content

Posted by koraq on June 12, 2010 - 18:03:
Author: mordante
Date: Sat Jun 12 18:03:47 2010
New Revision: 43353

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43353&view=rev
Log:
Make Wesnoth more compatible with C++0x (g++-4.5).

Modified:
    trunk/src/generate_report.cpp

Modified: trunk/src/generate_report.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/generate_report.cpp?rev=43353&r1=43352&r2=43353&view=diff
==============================================================================
--- trunk/src/generate_report.cpp (original)
+++ trunk/src/generate_report.cpp Sat Jun 12 18:03:47 2010
@@ -314,7 +314,7 @@
                }
 
                int grey = 128 + static_cast<int>((255-128) * movement_frac);
-               SDL_Color c = { grey, grey, grey, 0 };
+               SDL_Color c = create_color(grey, grey, grey);
                str << span_color(c) << u->movement_left()
                        << '/' << u->total_movement() << naps;
                break;




Related Messages


Powered by MHonArc, Updated Sat Jun 12 18:20:18 2010