diff options
author | Eugene Sandulenko | 2010-09-13 20:55:25 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:45:41 +0000 |
commit | 099406e15e4f00ddfb33272046758a0f2ff3fcc1 (patch) | |
tree | 9d60636deeb959e712c86312ccb1adeac6a52055 /engines/sword25/gfx/image/vectorimagerenderer.cpp | |
parent | a248e0b3f1918824b762deb9de65727edf71a5c3 (diff) | |
download | scummvm-rg350-099406e15e4f00ddfb33272046758a0f2ff3fcc1.tar.gz scummvm-rg350-099406e15e4f00ddfb33272046758a0f2ff3fcc1.tar.bz2 scummvm-rg350-099406e15e4f00ddfb33272046758a0f2ff3fcc1.zip |
SWORD25: Implement original hack with skipping green lines
svn-id: r53342
Diffstat (limited to 'engines/sword25/gfx/image/vectorimagerenderer.cpp')
-rw-r--r-- | engines/sword25/gfx/image/vectorimagerenderer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/vectorimagerenderer.cpp b/engines/sword25/gfx/image/vectorimagerenderer.cpp index a4ed244512..a8820d9121 100644 --- a/engines/sword25/gfx/image/vectorimagerenderer.cpp +++ b/engines/sword25/gfx/image/vectorimagerenderer.cpp @@ -335,6 +335,13 @@ void drawBez(ArtBpath *bez1, ArtBpath *bez2, art_u8 *buffer, int width, int heig printf(" drawBez(bez, buffer, 1.0, 1.0, %f, 0x%08x);\n", penWidth, color); #endif + // HACK: Some frames have green bounding boxes drawn. + // Perhaps they were used by original game artist Umriss + // We skip them just like the original + if (bez2 == 0 && color == Graphics::ARGBToColor<Graphics::ColorMasks<8888> >(0xff, 0x00, 0xff, 0x00)) { + return; + } + vec1 = art_bez_path_to_vec(bez1, 0.5); if (bez2 != 0) { vec2 = art_bez_path_to_vec(bez2, 0.5); |