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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
peter1138 13 years ago
parent a9bdd04072
commit cd6249dfc5

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

Loading…
Cancel
Save