diff options
author | Eugene Sandulenko | 2015-12-19 22:40:57 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-27 15:40:56 +0100 |
commit | 36e4722922ed6d92bac3ef7fe6d45511fb1a17c2 (patch) | |
tree | 9b2a2f5c91ec0a5b328f7a53ffcd7c7299a02fe5 /engines | |
parent | 3adda8284f6232f0a2728d325890135c8b0fa9ac (diff) | |
download | scummvm-rg350-36e4722922ed6d92bac3ef7fe6d45511fb1a17c2.tar.gz scummvm-rg350-36e4722922ed6d92bac3ef7fe6d45511fb1a17c2.tar.bz2 scummvm-rg350-36e4722922ed6d92bac3ef7fe6d45511fb1a17c2.zip |
WAGE: Fix polygon rendering
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/design.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wage/design.cpp b/engines/wage/design.cpp index 42dca86b11..8b3a661e47 100644 --- a/engines/wage/design.cpp +++ b/engines/wage/design.cpp @@ -212,7 +212,7 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, boo int y2 = y1; int x2 = x1; int b = in.readSByte(); - if (b == (byte)0x80) { + if ((b & 0xff) == 0x80) { y2 = in.readSint16BE(); numBytes -= 3; } else { @@ -220,7 +220,7 @@ void Design::drawPolygon(Graphics::Surface *surface, Common::ReadStream &in, boo numBytes -= 1; } b = in.readSByte(); - if (b == (byte) 0x80) { + if ((b & 0xff) == 0x80) { x2 = in.readSint16BE(); numBytes -= 3; } else { |