mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 05:03:29 +00:00
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
This commit is contained in:
parent
3a4536e2e2
commit
2de9cbf9fd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user