diff options
author | Torbjörn Andersson | 2004-04-15 15:56:21 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-04-15 15:56:21 +0000 |
commit | 2de9cbf9fdf4b35955781f0b8aea3732e3f69ee6 (patch) | |
tree | 9eac4f6ca0248ce6178a511094de6675718e836d /scumm/smush | |
parent | 3a4536e2e2ea74a4332447d59813b916f2aa3aa7 (diff) | |
download | scummvm-rg350-2de9cbf9fdf4b35955781f0b8aea3732e3f69ee6.tar.gz scummvm-rg350-2de9cbf9fdf4b35955781f0b8aea3732e3f69ee6.tar.bz2 scummvm-rg350-2de9cbf9fdf4b35955781f0b8aea3732e3f69ee6.zip |
Changed the type of value from char to int8. Otherwise, if char happens to
be unsigned, the test for if value == -31 will always fail.
svn-id: r13580
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/smush_font.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/smush/smush_font.cpp b/scumm/smush/smush_font.cpp index 1779e72ae7..f810a7895d 100644 --- a/scumm/smush/smush_font.cpp +++ b/scumm/smush/smush_font.cpp @@ -85,7 +85,7 @@ int SmushFont::drawChar(byte *buffer, int dst_width, int x, int y, byte chr) { if (_new_colors) { for (int j = 0; j < h; j++) { for (int i = 0; i < w; i++) { - char value = *src++; + int8 value = *src++; if (value == -color) { dst[i] = 0xFF; } else if (value == -31) { |