projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 1842510: round frame number to nearest integer rather than truncating.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
mod_filter
/
radialblur.cpp
diff --git
a/synfig-core/trunk/src/modules/mod_filter/radialblur.cpp
b/synfig-core/trunk/src/modules/mod_filter/radialblur.cpp
index
4c7f749
..
826d34d
100644
(file)
--- a/
synfig-core/trunk/src/modules/mod_filter/radialblur.cpp
+++ b/
synfig-core/trunk/src/modules/mod_filter/radialblur.cpp
@@
-52,8
+52,8
@@
SYNFIG_LAYER_INIT(RadialBlur);
SYNFIG_LAYER_SET_NAME(RadialBlur,"radial_blur");
SYNFIG_LAYER_INIT(RadialBlur);
SYNFIG_LAYER_SET_NAME(RadialBlur,"radial_blur");
-SYNFIG_LAYER_SET_LOCAL_NAME(RadialBlur,_("Radial Blur"));
-SYNFIG_LAYER_SET_CATEGORY(RadialBlur,_("Blurs"));
+SYNFIG_LAYER_SET_LOCAL_NAME(RadialBlur,
N
_("Radial Blur"));
+SYNFIG_LAYER_SET_CATEGORY(RadialBlur,
N
_("Blurs"));
SYNFIG_LAYER_SET_VERSION(RadialBlur,"0.1");
SYNFIG_LAYER_SET_CVS_ID(RadialBlur,"$Id$");
SYNFIG_LAYER_SET_VERSION(RadialBlur,"0.1");
SYNFIG_LAYER_SET_CVS_ID(RadialBlur,"$Id$");
@@
-156,7
+156,7
@@
RadialBlur::accelerated_render(Context context,Surface *surface,int quality, con
br[1] + ph*(int((rect.get_min()[1]-br[1])/ph+2-1e-6)));
// round to nearest integer width and height (should be very
br[1] + ph*(int((rect.get_min()[1]-br[1])/ph+2-1e-6)));
// round to nearest integer width and height (should be very
- // nearly whole numbers already, but dont want to round 5.99999
+ // nearly whole numbers already, but don
'
t want to round 5.99999
// down to 5)
int tmp_surface_width = int((tmp_surface_br[0]-tmp_surface_tl[0])/pw + 0.5);
int tmp_surface_height = int((tmp_surface_br[1]-tmp_surface_tl[1])/ph + 0.5);
// down to 5)
int tmp_surface_width = int((tmp_surface_br[0]-tmp_surface_tl[0])/pw + 0.5);
int tmp_surface_height = int((tmp_surface_br[1]-tmp_surface_tl[1])/ph + 0.5);