libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd rgba.h


From: Olaf Kähler
Subject: [libcvd-members] libcvd/cvd rgba.h
Date: Thu, 01 Sep 2011 13:26:24 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Changes by:     Olaf Kähler <ok245>     11/09/01 13:26:24

Modified files:
        cvd            : rgba.h 

Log message:
        added missing copy constructor to Rgba class

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/rgba.h?cvsroot=libcvd&r1=1.9&r2=1.10

Patches:
Index: rgba.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/rgba.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- rgba.h      20 Dec 2005 13:15:26 -0000      1.9
+++ rgba.h      1 Sep 2011 13:26:24 -0000       1.10
@@ -46,6 +46,7 @@
        /// @param b The blue component
        /// @param a The alpha component
        Rgba(T r, T g, T b, T a) : red(r), green(g), blue(b), alpha(a) {}
+       template <class S> inline explicit Rgba(const Rgba<S>& rgba) : 
red(static_cast<T>(rgba.red)), green(static_cast<T>(rgba.green)), 
blue(static_cast<T>(rgba.blue)), alpha(static_cast<T>(rgba.alpha)) {}
 
    T red; ///< The red component
    T green; ///< The green component



reply via email to

[Prev in Thread] Current Thread [Next in Thread]