projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a crash that was only showing up on Windows for some reason. Modifying a set...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
modules
/
lyr_std
/
shade.cpp
diff --git
a/synfig-core/trunk/src/modules/lyr_std/shade.cpp
b/synfig-core/trunk/src/modules/lyr_std/shade.cpp
index
5c5b129
..
05e0553
100644
(file)
--- a/
synfig-core/trunk/src/modules/lyr_std/shade.cpp
+++ b/
synfig-core/trunk/src/modules/lyr_std/shade.cpp
@@
-90,9
+90,9
@@
Layer_Shade::set_param(const String ¶m, const ValueBase &value)
{
IMPORT_PLUS(size,clamp(size));
IMPORT(type);
{
IMPORT_PLUS(size,clamp(size));
IMPORT(type);
- IMPORT_PLUS(color, { if (color.get_a() == 0) if (converted_blend_) {
+ IMPORT_PLUS(color, { if (color.get_a() == 0)
{
if (converted_blend_) {
set_blend_method(Color::BLEND_ALPHA_OVER);
set_blend_method(Color::BLEND_ALPHA_OVER);
- color.set_a(1); } else transparent_color_ = true; });
+ color.set_a(1); } else transparent_color_ = true; }
}
);
IMPORT(offset);
IMPORT(invert);
IMPORT(offset);
IMPORT(invert);
@@
-163,14
+163,12
@@
Layer_Shade::accelerated_render(Context context,Surface *surface,int quality, co
(offset_v>0?offset_v:0)+h
);
(offset_v>0?offset_v:0)+h
);
- /*
- if(quality >=10)
+ if(quality >= 10)
{
halfsizex=1;
halfsizey=1;
{
halfsizex=1;
halfsizey=1;
- }else
- */
- if(quality == 9)
+ }
+ else if (quality == 9)
{
halfsizex/=4;
halfsizey/=4;
{
halfsizex/=4;
halfsizey/=4;