mail[Wesnoth-commits] r24410 - /trunk/src/game_display.cpp


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

Header


Content

Posted by koraq on March 08, 2008 - 12:52:
Author: mordante
Date: Sat Mar  8 12:52:13 2008
New Revision: 24410

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24410&view=rev
Log:
Foo isn't a great variable name or save your changes before you commit ;-)

Modified:
    trunk/src/game_display.cpp

Modified: trunk/src/game_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=24410&r1=24409&r2=24410&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Sat Mar  8 12:52:13 2008
@@ -668,10 +668,10 @@
        if(unfilled < height && alpha >= ftofxp(0.3)) {
                const Uint32 colour = 
SDL_MapRGB(video().getSurface()->format,col.r,col.g,col.b);
                const Uint8 r_alpha = 
minimum<unsigned>(unsigned(fxpmult(alpha,255)),255);
-               surface foo(SDL_CreateRGBSurface(SDL_SWSURFACE, bar_loc.w, 
height - unfilled, 32,  /*col.r << 16, col.g << 8, col.b, 
0x44000000*/0xFF0000, 0xFF00, 0xFF, 0 ) );
+               surface filled_surf(SDL_CreateRGBSurface(SDL_SWSURFACE, 
bar_loc.w, height - unfilled, 32,  /*col.r << 16, col.g << 8, col.b, 
0x44000000*/0xFF0000, 0xFF00, 0xFF, 0 ) );
                SDL_Rect filled_area = {0, 0, bar_loc.w, height-unfilled};
-               fill_rect_alpha(filled_area, colour, r_alpha, foo);
-               drawing_buffer_add(LAYER_UNIT_FG, drawing_order, tblit(xpos + 
bar_loc.x, ypos + bar_loc.y + unfilled, foo));
+               fill_rect_alpha(filled_area, colour, r_alpha, filled_surf);
+               drawing_buffer_add(LAYER_UNIT_FG, drawing_order, tblit(xpos + 
bar_loc.x, ypos + bar_loc.y + unfilled, filled_surf));
        } 
 }
 




Related Messages


Powered by MHonArc, Updated Sat Mar 08 16:01:10 2008