X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fgradient.cpp;h=d89996bb2921f42273e86a57d0da47c282e8db94;hb=ae7bd4f460fdd93934fc0abc9589758a49309bda;hp=42950735cd57ea953cd4a3b3732311590fdd4d61;hpb=67690e081c28b818e94796be284206326bc8a6b9;p=supertux.git diff --git a/src/object/gradient.cpp b/src/object/gradient.cpp index 42950735c..d89996bb2 100644 --- a/src/object/gradient.cpp +++ b/src/object/gradient.cpp @@ -1,7 +1,7 @@ -// $Id: background.cpp 3144 2006-03-31 10:31:03Z matzebraun $ +// $Id$ // -// SuperTux - A Jump'n Run -// Copyright (C) 2004 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -16,6 +16,7 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #include #include @@ -27,7 +28,7 @@ #include "object_factory.hpp" #include "resources.hpp" #include "main.hpp" -#include "msg.hpp" +#include "log.hpp" Gradient::Gradient() : layer(LAYER_BACKGROUND0) @@ -67,7 +68,7 @@ Gradient::write(lisp::Writer& writer) writer.write_float_vector("bottom_color", bkgd_bottom_color); writer.write_int("layer", layer); - + writer.end_list("gradient"); } @@ -81,13 +82,13 @@ Gradient::set_gradient(Color top, Color bottom) { gradient_top = top; gradient_bottom = bottom; - + if (gradient_top.red > 1.0 || gradient_top.green > 1.0 || gradient_top.blue > 1.0 || gradient_top.alpha > 1.0) - msg_warning << "top gradient color has values above 1.0" << std::endl; + log_warning << "top gradient color has values above 1.0" << std::endl; if (gradient_bottom.red > 1.0 || gradient_bottom.green > 1.0 || gradient_bottom.blue > 1.0 || gradient_bottom.alpha > 1.0) - msg_warning << "bottom gradient color has values above 1.0" << std::endl; + log_warning << "bottom gradient color has values above 1.0" << std::endl; } void