Author: Carlos Lopez <[email protected]>
Date: Fri Jun 22 17:09:07 2012 +0200
Use CairoColor size when copying source to dest.
---
synfig-core/src/synfig/surface.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/synfig-core/src/synfig/surface.cpp
b/synfig-core/src/synfig/surface.cpp
index 193e75f..57183e9 100644
--- a/synfig-core/src/synfig/surface.cpp
+++ b/synfig-core/src/synfig/surface.cpp
@@ -274,9 +274,9 @@ synfig::CairoSurface::blit_to(alpha_pen& pen, int x, int y,
int w, int h)
for(int i=0;i<h;i++)
{
- char*
src(static_cast<char*>(static_cast<void*>(operator[](y)+x))+i*get_w()*sizeof(Color));
- char*
dest(static_cast<char*>(static_cast<void*>(pen.x()))+i*pen.get_width()*sizeof(Color));
- memcpy(dest,src,w*sizeof(Color));
+ char*
src(static_cast<char*>(static_cast<void*>(operator[](y)+x))+i*get_w()*sizeof(CairoColor));
+ char*
dest(static_cast<char*>(static_cast<void*>(pen.x()))+i*pen.get_width()*sizeof(CairoColor));
+ memcpy(dest,src,w*sizeof(CairoColor));
}
return;
}
------------------------------------------------------------------------------
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