From c78ed9e4233b80ecd2706d0ffda01fd069a6e6ef Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 24 Jul 2009 10:45:25 +0000 Subject: Adding transparency for VMD video block type 2, fixing bug #2037158 ("n-Game animation shifted(?)"). The problem was that the animation in question has an one pixel wide transparent bar on the left svn-id: r42690 --- graphics/video/coktelvideo/coktelvideo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'graphics/video') diff --git a/graphics/video/coktelvideo/coktelvideo.cpp b/graphics/video/coktelvideo/coktelvideo.cpp index 39aa8c5d2d..0681e8261e 100644 --- a/graphics/video/coktelvideo/coktelvideo.cpp +++ b/graphics/video/coktelvideo/coktelvideo.cpp @@ -1511,7 +1511,10 @@ uint32 Vmd::renderFrame(int16 &left, int16 &top, int16 &right, int16 &bottom) { int16 h = MIN(height, sH); for (int i = 0; i < h; i++) { - memcpy(dest, srcPtr, w); + for (int j = 0; j < w; j++) + if (srcPtr[j]) + dest[j] = srcPtr[j]; + srcPtr += postScaleX(width); dest += sW; } -- cgit v1.2.3