Author: Carlos Lopez <[email protected]>
Date: Tue May 29 17:57:50 2012 +0200
Add new surface constructor that allows to pass the pitch. It will be used when
pitch shouldn't be calculated.
---
ETL/ETL/_surface.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/ETL/ETL/_surface.h b/ETL/ETL/_surface.h
index d5a32a5..cf0adc3 100644
--- a/ETL/ETL/_surface.h
+++ b/ETL/ETL/_surface.h
@@ -110,6 +110,13 @@ public:
w_(w),h_(h),
deletable_(deletable) { }
+ surface(value_type* data, int w, int h, typename
difference_type::value_type pitch, bool deletable=false):
+ data_(data),
+ zero_pos_(data),
+ pitch_(pitch),
+ w_(w),h_(h),
+ deletable_(deletable) { }
+
surface(const typename size_type::value_type &w, const typename
size_type::value_type &h):
data_(new value_type[w*h]),
zero_pos_(data_),
------------------------------------------------------------------------------
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