diff options
author | Eugene Sandulenko | 2015-11-18 00:13:18 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-11-18 00:13:18 +0100 |
commit | aa9b5e94b67d21262ff2806944c4c46818937d96 (patch) | |
tree | ed7981af7e79ecd785412c32824aa5484df6b967 /engines/sword25 | |
parent | aa74254f23d40893c16981209cee00057bec13c9 (diff) | |
download | scummvm-rg350-aa9b5e94b67d21262ff2806944c4c46818937d96.tar.gz scummvm-rg350-aa9b5e94b67d21262ff2806944c4c46818937d96.tar.bz2 scummvm-rg350-aa9b5e94b67d21262ff2806944c4c46818937d96.zip |
SWORD25: Implement missing SWF opcode
Diffstat (limited to 'engines/sword25')
-rw-r--r-- | engines/sword25/gfx/image/vectorimage.cpp | 11 | ||||
-rw-r--r-- | engines/sword25/gfx/image/vectorimage.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/sword25/gfx/image/vectorimage.cpp b/engines/sword25/gfx/image/vectorimage.cpp index 0e5dfb9c53..756d063d43 100644 --- a/engines/sword25/gfx/image/vectorimage.cpp +++ b/engines/sword25/gfx/image/vectorimage.cpp @@ -283,7 +283,18 @@ VectorImage::VectorImage(const byte *pFileData, uint fileSize, bool &success, co case 32: success = parseDefineShape(3, bs); return; + case 9: + // SetBackgroundColor + { + byte r, g, b; + r = bs.getByte(); + g = bs.getByte(); + b = bs.getByte(); + _bgColor = Graphics::ARGBToColor<Graphics::ColorMasks<8888> >(0xff, r, g, b); + } + break; default: + warning("Ignoring tag: %d, %d bytes", tagType, tagLength); // Ignore unknown tags bs.skipBytes(tagLength); } diff --git a/engines/sword25/gfx/image/vectorimage.h b/engines/sword25/gfx/image/vectorimage.h index 057064fc6a..b5c2100681 100644 --- a/engines/sword25/gfx/image/vectorimage.h +++ b/engines/sword25/gfx/image/vectorimage.h @@ -228,6 +228,7 @@ private: byte *_pixelData; Common::String _fname; + uint _bgColor; }; } // End of namespace Sword25 |