As in previous commit, 2 more parameters were incorrectly named:
[synfig.git] / synfig-core / trunk / src / synfig / layer_solidcolor.cpp
index 85b20aa..9cd1ba6 100644 (file)
@@ -5,16 +5,17 @@
 **     $Id: layer_solidcolor.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
 **
 **     \legal
-**     Copyright (c) 2002 Robert B. Quattlebaum Jr.
+**     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
 **
-**     This software and associated documentation
-**     are CONFIDENTIAL and PROPRIETARY property of
-**     the above-mentioned copyright holder.
+**     This package 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 of
+**     the License, or (at your option) any later version.
 **
-**     You may not copy, print, publish, or in any
-**     other way distribute this software without
-**     a prior written agreement with
-**     the copyright holder.
+**     This package is distributed in the hope that it will be useful,
+**     but WITHOUT ANY WARRANTY; without even the implied warranty of
+**     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+**     General Public License for more details.
 **     \endlegal
 */
 /* ========================================================================= */
@@ -66,12 +67,12 @@ Layer_SolidColor::Layer_SolidColor():
        color(Color::black())
 {
 }
-       
+
 bool
 Layer_SolidColor::set_param(const String & param, const ValueBase &value)
 {
        IMPORT(color);
-       
+
        return Layer_Composite::set_param(param,value);
 }
 
@@ -82,19 +83,19 @@ Layer_SolidColor::get_param(const String &param)const
 
        EXPORT_NAME();
        EXPORT_VERSION();
-               
-       return Layer_Composite::get_param(param);       
+
+       return Layer_Composite::get_param(param);
 }
 
 Layer::Vocab
 Layer_SolidColor::get_param_vocab()const
 {
        Layer::Vocab ret(Layer_Composite::get_param_vocab());
-       
+
        ret.push_back(ParamDesc("color")
                .set_local_name(_("Color"))
        );
-       
+
        return ret;
 }
 
@@ -106,9 +107,9 @@ Layer_SolidColor::hit_check(synfig::Context context, const synfig::Point &point)
        else
        if(get_blend_method()==Color::BLEND_COMPOSITE && get_amount()*color.get_a()>=0.5)
                return const_cast<Layer_SolidColor*>(this);
-       
+
        Layer::Handle layer(context.hit_check(point));
-       
+
        return layer?layer:const_cast<Layer_SolidColor*>(this);
 }
 
@@ -120,7 +121,7 @@ Layer_SolidColor::get_color(Context context, const Point &pos)const
        else
                return Color::blend(color,context.get_color(pos),get_amount(),get_blend_method());
 }
-       
+
 bool
 Layer_SolidColor::accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const
 {
@@ -129,7 +130,7 @@ Layer_SolidColor::accelerated_render(Context context,Surface *surface,int qualit
                // Mark our progress as starting
                if(cb && !cb->amount_complete(0,1000))
                        return false;
-               
+
                surface->set_wh(renddesc.get_w(),renddesc.get_h());
                surface->fill(color);