Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-core / tags / stable / src / modules / lyr_std / shade.h
index 3b563af..ec16ad1 100644 (file)
@@ -1,11 +1,12 @@
 /* === S Y N F I G ========================================================= */
 /*!    \file shade.h
-**     \brief Template Header
+**     \brief Header file for implementation of the "Shade" layer
 **
 **     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     Copyright (c) 2008 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -43,7 +44,7 @@ private:
        synfig::Vector  size;
        int                             type;
        synfig::Color   color;
-       synfig::Vector  offset;
+       synfig::Vector  origin;
        bool invert;
 
 public:
@@ -57,9 +58,9 @@ public:
 
        virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
        virtual Rect get_full_bounding_rect(Context context)const;
-
        virtual Vocab get_param_vocab()const;
-}; // END of class Blur
+       virtual bool reads_context()const { return true; }
+}; // END of class Layer_Shade
 
 /* -- E X T E R N S --------------------------------------------------------- */