From cd6249dfc5f6b183fa249f223503732d2d4a52c6 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 26 Nov 2011 13:36:38 +0000 Subject: [PATCH] (svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch) --- src/blitter/8bpp_optimized.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blitter/8bpp_optimized.cpp b/src/blitter/8bpp_optimized.cpp index 24b9252b7d..5106bd15fc 100644 --- a/src/blitter/8bpp_optimized.cpp +++ b/src/blitter/8bpp_optimized.cpp @@ -182,7 +182,7 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteLoader::Sprite *sprite, AllocatorPro count_dst = NULL; } /* As long as we find transparency bytes, keep counting */ - if (colour == 0) { + if (colour == 0 && trans != 255) { last_colour = 0; trans++; continue;