(svn r10234) -Fix r10233: make peter1138 happy

This commit is contained in:
truelight 2007-06-20 10:30:25 +00:00
parent d7acd238ac
commit 636db862a5

View File

@ -151,7 +151,7 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteLoader::Sprite *sprite, Blitter::All
if (rx == sprite->width) break; if (rx == sprite->width) break;
} }
if (last_color == 0 || color == 0 || pixels > 250) { if (last_color == 0 || color == 0 || pixels == 255) {
if (count_index != 0) { if (count_index != 0) {
/* Write how many non-transparent bytes we get */ /* Write how many non-transparent bytes we get */
temp_dst[count_index] = pixels; temp_dst[count_index] = pixels;