(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)

This commit is contained in:
peter1138 2011-11-26 13:36:38 +00:00
parent a9bdd04072
commit cd6249dfc5

View File

@ -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;