From 93ca5cb3aff752c452ec5ee5ae108d8cd0b6e30c Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Wed, 13 Aug 2003 22:40:57 +0000 Subject: [PATCH] Explicitly stated a bit masking to please VC.NET2003 runtime small types conversion checks. svn-id: r9671 --- scumm/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 0373c6b64f5..cb3afd8ded6 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1767,7 +1767,7 @@ void Gdi::unkDecodeA(byte *dst, const byte *src, int height) { cl -= 3; bits >>= 3; if (incm) { - color += incm; + color = (byte)((color+incm)&0xFF); } else { FILL_BITS; reps = bits & 0xFF;