diff options
author | Sven Hesse | 2009-07-24 10:45:25 +0000 |
---|---|---|
committer | Sven Hesse | 2009-07-24 10:45:25 +0000 |
commit | c78ed9e4233b80ecd2706d0ffda01fd069a6e6ef (patch) | |
tree | 52fc9a062d230508858a5c04212aba385b83084e /graphics/video | |
parent | 3efecb3afcc5043703c4ab28bac5406f351a0794 (diff) | |
download | scummvm-rg350-c78ed9e4233b80ecd2706d0ffda01fd069a6e6ef.tar.gz scummvm-rg350-c78ed9e4233b80ecd2706d0ffda01fd069a6e6ef.tar.bz2 scummvm-rg350-c78ed9e4233b80ecd2706d0ffda01fd069a6e6ef.zip |
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
Diffstat (limited to 'graphics/video')
-rw-r--r-- | graphics/video/coktelvideo/coktelvideo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |