mail[Wesnoth-commits] r43458 - in /trunk/src: arrow.cpp arrow.hpp


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

Header


Content

Posted by gabrielmorin on June 15, 2010 - 22:37:
Author: gabba
Date: Tue Jun 15 22:37:06 2010
New Revision: 43458

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43458&view=rev
Log:
Arrows: use double instead of float, as per mordante's instructions

Modified:
    trunk/src/arrow.cpp
    trunk/src/arrow.hpp

Modified: trunk/src/arrow.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/arrow.cpp?rev=43458&r1=43457&r2=43458&view=diff
==============================================================================
--- trunk/src/arrow.cpp (original)
+++ trunk/src/arrow.cpp Tue Jun 15 22:37:06 2010
@@ -90,7 +90,7 @@
        }
 }
 
-void arrow::set_alpha(float alpha)
+void arrow::set_alpha(double alpha)
 {
        alpha_ = ftofxp(alpha);
        if (valid_path(path_))

Modified: trunk/src/arrow.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/arrow.hpp?rev=43458&r1=43457&r2=43458&view=diff
==============================================================================
--- trunk/src/arrow.hpp (original)
+++ trunk/src/arrow.hpp Tue Jun 15 22:37:06 2010
@@ -67,7 +67,7 @@
 
        /// Sets transparency to the specified alpha value
        /// 0.5 is 50% transparent, anything above 1.0 brightens the arrow 
images
-       void set_alpha(float alpha);
+       void set_alpha(double alpha);
 
        const arrow_path_t & get_path() const;
 




Related Messages


Powered by MHonArc, Updated Tue Jun 15 22:40:12 2010