Author: Carlos Lopez <[email protected]>
Date: Wed Aug 8 17:44:46 2012 +0200
Rectangle: read color components directly
---
synfig-core/src/modules/mod_geometry/rectangle.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/synfig-core/src/modules/mod_geometry/rectangle.cpp
b/synfig-core/src/modules/mod_geometry/rectangle.cpp
index 40f5b65..0eae01d 100644
--- a/synfig-core/src/modules/mod_geometry/rectangle.cpp
+++ b/synfig-core/src/modules/mod_geometry/rectangle.cpp
@@ -567,11 +567,10 @@ Rectangle::accelerated_cairorender(Context
context,cairo_surface_t *surface,int
if(is_disabled())
return
context.accelerated_cairorender(surface,quality,renddesc,cb);
- Color dcolor(color/*.premult_alpha()*/);
- const float r(dcolor.get_r());
- const float g(dcolor.get_g());
- const float b(dcolor.get_b());
- const float a(dcolor.get_a());
+ const float r(color.get_r());
+ const float g(color.get_g());
+ const float b(color.get_b());
+ const float a(color.get_a());
const Point tl(renddesc.get_tl());
const Point br(renddesc.get_br());
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl