mail[Wesnoth-commits] r43342 - /trunk/src/tools/exploder_cutter.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:10 2010
New Revision: 43342

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

Modified:
    trunk/src/tools/exploder_cutter.cpp

Modified: trunk/src/tools/exploder_cutter.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/tools/exploder_cutter.cpp?rev=43342&r1=43341&r2=43342&view=diff
==============================================================================
--- trunk/src/tools/exploder_cutter.cpp (original)
+++ trunk/src/tools/exploder_cutter.cpp Sat Jun 12 18:03:10 2010
@@ -136,7 +136,10 @@
        int x = atoi(pos[0].c_str());
        int y = atoi(pos[1].c_str());
 
-       const SDL_Rect cut = {x - mask.shift.x, y - mask.shift.y, 
mask.image->w, mask.image->h};
+       const SDL_Rect cut = create_rect(x - mask.shift.x
+                       , y - mask.shift.y
+                       , mask.image->w
+                       , mask.image->h);
 
        typedef std::pair<std::string, positioned_surface> sme;
 




Related Messages


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