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:
Torbjörn Andersson 2004-04-15 15:56:21 +00:00
parent 3a4536e2e2
commit 2de9cbf9fd

View File

@ -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) {