Author: Carlos Lopez <[email protected]>
Date:   Mon Aug 13 12:39:10 2012 +0200

Layer_Polygon: add support for antialias.

---

 synfig-core/src/synfig/layer_polygon.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/synfig/layer_polygon.cpp 
b/synfig-core/src/synfig/layer_polygon.cpp
index 5517c2e..89e4614 100644
--- a/synfig-core/src/synfig/layer_polygon.cpp
+++ b/synfig-core/src/synfig/layer_polygon.cpp
@@ -245,6 +245,8 @@ Layer_Polygon::accelerated_cairorender(Context 
context,cairo_surface_t *surface,
                cairo_set_fill_rule(subcr, CAIRO_FILL_RULE_EVEN_ODD);
                break;
        }
+       if(!antialias)
+               cairo_set_antialias(subcr, CAIRO_ANTIALIAS_NONE);
        cairo_fill(subcr);
        cairo_restore(subcr);
        


------------------------------------------------------------------------------
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

Reply via email to