-// $Id: background.cpp 3144 2006-03-31 10:31:03Z matzebraun $
+// $Id$
//
-// SuperTux - A Jump'n Run
-// Copyright (C) 2004 Matthias Braun <matze@braunis.de
+// SuperTux
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// 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 <config.h>
#include <stdexcept>
#include "object_factory.hpp"
#include "resources.hpp"
#include "main.hpp"
-#include "msg.hpp"
+#include "log.hpp"
Gradient::Gradient()
: layer(LAYER_BACKGROUND0)
writer.write_float_vector("bottom_color", bkgd_bottom_color);
writer.write_int("layer", layer);
-
+
writer.end_list("gradient");
}
{
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");
+ 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");
+ log_warning << "bottom gradient color has values above 1.0" << std::endl;
}
void