]> git.sesse.net Git - casparcg/blobdiff - core/producer/text/utils/color.h
Fixed compilation problem on Linux.
[casparcg] / core / producer / text / utils / color.h
index c9c53f288edb500bdae14cd0c917d0fb137eddd6..9c41ba7c56c07ac9b9dde660c616413034f78858 100644 (file)
@@ -8,10 +8,10 @@ struct color
        color() {}
        explicit color(unsigned int value)
        {
-               b =  (value & 0x000000ff)                       / 255.0f;
-               g = ((value & 0x0000ff00) >>  8)        / 255.0f;
-               r = ((value & 0x00ff0000) >> 16)        / 255.0f;
-               a = ((value & 0xff000000) >> 24)        / 255.0f;
+               b =  (value & 0x000000ff)                       / 255.0;
+               g = ((value & 0x0000ff00) >>  8)        / 255.0;
+               r = ((value & 0x00ff0000) >> 16)        / 255.0;
+               a = ((value & 0xff000000) >> 24)        / 255.0;
        }
 
        color(T alpha, T red, T green, T blue) : r(red), g(green), b(blue), a(alpha) {}