Fix 1698604: Moved the quick_rng class into its own header, since it was present...
[synfig.git] / synfig-core / trunk / src / synfig / layer_composite.cpp
index a96e72c..8a4188e 100644 (file)
@@ -2,19 +2,20 @@
 /*!    \file layer_composite.cpp
 **     \brief Template File
 **
-**     $Id: layer_composite.cpp,v 1.2 2005/01/24 03:08:18 darco Exp $
+**     $Id$
 **
 **     \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
 */
 /* ========================================================================= */
@@ -62,7 +63,7 @@ bool
 Layer_Composite::accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc_, ProgressCallback *cb)  const
 {
        RendDesc renddesc(renddesc_);
-       
+
        if(!amount_)
                return context.accelerated_render(surface,quality,renddesc,cb);
 
@@ -74,7 +75,7 @@ Layer_Composite::accelerated_render(Context context,Surface *surface,int quality
        Layer_Bitmap::Handle surfacelayer(new class Layer_Bitmap());
 
        Context iter;
-       
+
        for(iter=context;*iter;iter++)
                image.push_back(*iter);
 
@@ -106,15 +107,15 @@ Layer_Composite::accelerated_render(Context context,Surface *surface,int quality
 
        // Set up a surface target
        Target::Handle target(surface_target(surface));
-       
+
        if(!target)
        {
                if(cb)cb->error(_("Unable to create surface target"));
                return false;
        }
-       
+
        RendDesc desc(renddesc);
-       
+
        target->set_rend_desc(&desc);
 
        // Render the scene