X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fsupersample.cpp;h=d3774762b9a89456d223808fbe27e4c31c503675;hb=2a5afe6a69e0ae56ef8b4e0fc3dd9f5f26f8a366;hp=ebe422303807a22ba8a10214d519647f29cfd609;hpb=21bfc670b83d4c45da9ed1b95063b7e6a007168c;p=synfig.git diff --git a/synfig-core/trunk/src/modules/lyr_std/supersample.cpp b/synfig-core/trunk/src/modules/lyr_std/supersample.cpp index ebe4223..d377476 100644 --- a/synfig-core/trunk/src/modules/lyr_std/supersample.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/supersample.cpp @@ -1,8 +1,8 @@ -/*! ======================================================================== -** Synfig -** Template File -** $Id: supersample.cpp,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $ +/* === S Y N F I G ========================================================= */ +/*! \file supersample.cpp +** \brief Template Header ** +** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** ** This package is free software; you can redistribute it and/or @@ -14,6 +14,7 @@ ** 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 ** ** === N O T E S =========================================================== ** @@ -72,7 +73,7 @@ SuperSample::set_param(const String & param, const ValueBase &value) IMPORT(height); IMPORT(scanline); IMPORT(alpha_aware); - + return false; } @@ -83,7 +84,7 @@ SuperSample::get_param(const String& param)const EXPORT(height); EXPORT(scanline); EXPORT(alpha_aware); - + EXPORT_NAME(); EXPORT_VERSION(); @@ -96,7 +97,7 @@ SuperSample::accelerated_render(Context context,Surface *surface,int quality, co // don't bother supersampling if our quality is too low. if(quality>=10) return context.accelerated_render(surface,quality,renddesc,cb); - + RendDesc desc(renddesc); SuperCallback subcb(cb,1,9000,10000); @@ -197,9 +198,9 @@ SuperSample::accelerated_render(Context context,Surface *surface,int quality, co } } } - + if(cb && !cb->amount_complete(10000,10000)) return false; - + return true; } @@ -223,7 +224,7 @@ SuperSample::get_param_vocab(void)const ret.push_back(ParamDesc("alpha_aware") .set_local_name(_("Be Alpha Safe")) ); - + return ret; }