From 5eff2951cc13dce1832cac79cf3e62a1304ba55a Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 20 Jun 2007 10:26:39 +0000 Subject: (svn r10233) -Fix: 8bpp-optimized encoder fucked up if 255+ pixels in a row were non-transparent (tnx boekabart) --- src/blitter/8bpp_optimized.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/blitter/8bpp_optimized.cpp b/src/blitter/8bpp_optimized.cpp index 9af922e30..2548fc6be 100644 --- a/src/blitter/8bpp_optimized.cpp +++ b/src/blitter/8bpp_optimized.cpp @@ -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; -- cgit v1.2.3-70-g09d2