X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer_motionblur.cpp;h=236ef3a38ee98240ced9d74f438f4fa6c03d36bd;hb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;hp=6ac3673fb1ec6e777809d7330e391c72d180c312;hpb=75635270584b5775982adbd70250a0ebc7e3e76b;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/layer_motionblur.cpp b/synfig-core/trunk/src/synfig/layer_motionblur.cpp index 6ac3673..236ef3a 100644 --- a/synfig-core/trunk/src/synfig/layer_motionblur.cpp +++ b/synfig-core/trunk/src/synfig/layer_motionblur.cpp @@ -64,12 +64,12 @@ Layer_MotionBlur::Layer_MotionBlur(): aperture (0) { } - + bool Layer_MotionBlur::set_param(const String ¶m, const ValueBase &value) { - IMPORT(aperture); + IMPORT(aperture); return Layer_Composite::set_param(param,value); } @@ -77,10 +77,10 @@ ValueBase Layer_MotionBlur::get_param(const String ¶m)const { EXPORT(aperture); - + EXPORT_NAME(); EXPORT_VERSION(); - + return Layer_Composite::get_param(param); } @@ -106,7 +106,7 @@ Layer_MotionBlur::get_color(Context context, const Point &pos)const Time time(time_cur); time+=(Vector::value_type)( (signed)(RAND_MAX/2)-(signed)rand() )/(Vector::value_type)(RAND_MAX) *aperture -aperture*0.5; context.set_time(time, pos); - } + } */ return context.get_color(pos); } @@ -116,12 +116,12 @@ Layer_MotionBlur::get_param_vocab()const { Layer::Vocab ret; //ret=Layer_Composite::get_param_vocab(); - + ret.push_back(ParamDesc("aperture") .set_local_name(_("Aperture")) .set_description(_("Shutter Time")) ); - + return ret; } @@ -163,18 +163,18 @@ Layer_MotionBlur::accelerated_render(Context context,Surface *surface,int qualit samples=3; break; case 10: // Rough Quality - default: + default: samples=1; break; - + } - + Surface tmp; int i; surface->set_wh(renddesc.get_w(),renddesc.get_h()); surface->clear(); - + for(i=0;i