X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fsupersample.cpp;h=608a242162e1aa3021585561a11e150173c80188;hb=22da35a8d50ea32105199b4a84ba294171eccc22;hp=c405f468394fd3fd05d37b980adc25b5c083c314;hpb=cc54c38609ee9745ad678e5e9b9d7d2912be9c95;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 c405f46..608a242 100644 --- a/synfig-core/trunk/src/modules/lyr_std/supersample.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/supersample.cpp @@ -1,6 +1,8 @@ /* === S Y N F I G ========================================================= */ /*! \file supersample.cpp -** \brief Template Header +** \brief Implementation of the "Super Sample" layer +** +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -50,8 +52,8 @@ SYNFIG_LAYER_INIT(SuperSample); SYNFIG_LAYER_SET_NAME(SuperSample,"super_sample"); -SYNFIG_LAYER_SET_LOCAL_NAME(SuperSample,_("Super Sample")); -SYNFIG_LAYER_SET_CATEGORY(SuperSample,_("Other")); +SYNFIG_LAYER_SET_LOCAL_NAME(SuperSample,N_("Super Sample")); +SYNFIG_LAYER_SET_CATEGORY(SuperSample,N_("Other")); SYNFIG_LAYER_SET_VERSION(SuperSample,"0.1"); SYNFIG_LAYER_SET_CVS_ID(SuperSample,"$Id$"); @@ -168,7 +170,7 @@ SuperSample::accelerated_render(Context context,Surface *surface,int quality, co else pen.put_value(Color::alpha()); } - if(y&31==0 && cb) + if((y&31)==0 && cb) { if(!stagetwo.amount_complete(y,surface->get_h())) return false; @@ -191,7 +193,7 @@ SuperSample::accelerated_render(Context context,Surface *surface,int quality, co temp_pen.dec_y(v); pen.put_value(pool*multiplier); } - if(y&31==0 && cb) + if((y&31)==0 && cb) { if(!stagetwo.amount_complete(y,surface->get_h())) return false;