Author: mordante
Date: Mon Nov 10 19:30:30 2008
New Revision: 30694

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30694&view=rev
Log:
Send parameter as const reference and cleanups.

Modified:
    trunk/src/display.hpp

Modified: trunk/src/display.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.hpp?rev=30694&r1=30693&r2=30694&view=diff
==============================================================================
--- trunk/src/display.hpp (original)
+++ trunk/src/display.hpp Mon Nov 10 19:30:30 2008
@@ -294,14 +294,22 @@
         * These functions require a prerendered surface.
         * Since they are drawn at the top, they are not influenced by TOD, 
shroud etc.
         */
-       void set_hex_overlay(const map_location& loc, surface image) { 
hex_overlay_[loc] = image; }
+       void set_hex_overlay(const map_location& loc, const surface& image) 
+               { hex_overlay_[loc] = image; }
+
        void clear_hex_overlay(const map_location& loc);
 
-       void set_selected_hex_overlay(const surface& image) { 
selected_hex_overlay_ = image; }
-       void clear_selected_hex_overlay() { selected_hex_overlay_ = NULL; }
-
-       void set_mouseover_hex_overlay(const surface& image) { 
mouseover_hex_overlay_ = image; }
-       void clear_mouseover_hex_overlay() { mouseover_hex_overlay_ = NULL; }
+       void set_selected_hex_overlay(const surface& image) 
+               { selected_hex_overlay_ = image; }
+
+       void clear_selected_hex_overlay() 
+               { selected_hex_overlay_ = NULL; }
+
+       void set_mouseover_hex_overlay(const surface& image) 
+               { mouseover_hex_overlay_ = image; }
+
+       void clear_mouseover_hex_overlay() 
+               { mouseover_hex_overlay_ = NULL; }
 
        /**
         * Debug function to toggle the "sunset" mode.


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to