(svn r10233) -Fix: 8bpp-optimized encoder fucked up if 255+ pixels in a row were non-transparent (tnx boekabart)

This commit is contained in:
truelight 2007-06-20 10:26:39 +00:00
parent 436eb69a39
commit d7acd238ac

View File

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