Author: Carlos Lopez <[email protected]>
Date:   Thu Jun  7 19:43:32 2012 +0200

Surface: When a surface is created based on other surface use the given surface 
pitch to create the new surface data. This allow to create copies of Cairo 
surfaces based without loose the cairo stride concept.

---

 ETL/ETL/_surface.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ETL/ETL/_surface.h b/ETL/ETL/_surface.h
index cf0adc3..e57c8cf 100644
--- a/ETL/ETL/_surface.h
+++ b/ETL/ETL/_surface.h
@@ -151,7 +151,7 @@ public:
        }
 
        surface(const surface &s):
-               data_(s.data_?new value_type[s.w_*s.h_]:0),
+               data_(s.data_?(pointer)(new char[s.pitch_*s.h_]):0),
                zero_pos_(data_+(s.zero_pos_-s.data_)),
                pitch_(s.pitch_),
                w_(s.w_),


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