Author: Carlos Lopez <[email protected]>
Date: Fri Aug 10 09:38:24 2012 +0200
Circle Layer: remove some callbacks notifications and destroy cr before return
---
synfig-core/src/modules/mod_geometry/circle.cpp | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/synfig-core/src/modules/mod_geometry/circle.cpp
b/synfig-core/src/modules/mod_geometry/circle.cpp
index 2aa7e80..3570476 100644
--- a/synfig-core/src/modules/mod_geometry/circle.cpp
+++ b/synfig-core/src/modules/mod_geometry/circle.cpp
@@ -775,8 +775,6 @@ Circle::accelerated_cairorender(Context
context,cairo_surface_t *surface,int qua
cairo_paint(cr);
cairo_restore(cr);
cairo_destroy(cr);
- if(cb && !cb->amount_complete(10000,10000))
- return false;
return true;
}
@@ -911,9 +909,6 @@ Circle::accelerated_cairorender(Context
context,cairo_surface_t *surface,int qua
cairo_restore(cr);
}
cairo_destroy(cr);
- // Mark our progress as finished
- if(cb && !cb->amount_complete(10000,10000))
- return false;
return true;
}
else // inverted but semitransparent
@@ -956,9 +951,6 @@ Circle::accelerated_cairorender(Context
context,cairo_surface_t *surface,int qua
cairo_surface_destroy(subimage);
cairo_destroy(subcr);
cairo_destroy(cr);
- // Mark our progress as finished
- if(cb && !cb->amount_complete(10000,10000))
- return false;
return true;
}
@@ -1016,9 +1008,6 @@ Circle::accelerated_cairorender(Context
context,cairo_surface_t *surface,int qua
cairo_paint(cr);
cairo_restore(cr);
cairo_destroy(cr);
- // Mark our progress as finished
- if(cb && !cb->amount_complete(10000,10000))
- return false;
return true;
}
}
@@ -1027,11 +1016,7 @@ Circle::accelerated_cairorender(Context
context,cairo_surface_t *surface,int qua
{
}
-
- // Mark our progress as finished
- if(cb && !cb->amount_complete(10000,10000))
- return false;
-
+ cairo_destroy(cr);
return true;
}
------------------------------------------------------------------------------
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