Author: Carlos Lopez <[email protected]>
Date: Sun Sep 16 20:53:49 2012 +0200
etl::surface: new member to copy one surface on another with the same w, h, and
pitch
---
ETL/ETL/_surface.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ETL/ETL/_surface.h b/ETL/ETL/_surface.h
index a1f6d6b..c2f74cd 100644
--- a/ETL/ETL/_surface.h
+++ b/ETL/ETL/_surface.h
@@ -208,6 +208,14 @@ public:
}
void
+ copy(const surface &rhs)
+ {
+ if(pitch_!=rhs.pitch_ || w_!=rhs.w_ || h_!=rhs.h_)
+ return;
+ memcpy(data_, rhs.data_, pitch_*h_);
+ }
+
+ void
set_wh(typename size_type::value_type w, typename size_type::value_type
h, const typename size_type::value_type &pitch=0)
{
if(data_)
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl