X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fvideo%2Fcolor.hpp;h=f0bd76d6b0ee87e78802b7823c521a96d81f4146;hb=86e5914510fc29f4decbb66a7d602872b6c8555e;hp=0fa97b16391b070b6071bcb3e1db0cfe45042af5;hpb=99cf62c2d44b4555e9761f1c8f1b10cf880c33fb;p=supertux.git diff --git a/src/video/color.hpp b/src/video/color.hpp index 0fa97b163..f0bd76d6b 100644 --- a/src/video/color.hpp +++ b/src/video/color.hpp @@ -1,7 +1,8 @@ // $Id$ // // SuperTux -// Copyright (C) 2006 Matthias Braun // +// Copyright (C) 2006 Matthias Braun +// // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 @@ -23,8 +24,6 @@ #include #include "log.hpp" -#include - class Color { public: @@ -77,16 +76,6 @@ public: return greyscale() < other.greyscale(); } - Unison::Video::Color to_unison_color() const - { - Unison::Video::Color color; - color.red = (unsigned char) (red * 0xff); - color.green = (unsigned char) (green * 0xff); - color.blue =(unsigned char) (blue * 0xff); - color.alpha = (unsigned char) (alpha * 0xff); - return color; - } - float red, green, blue, alpha; static const Color BLACK;