diff options
author | peter1138 <peter1138@openttd.org> | 2011-11-26 13:36:38 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2011-11-26 13:36:38 +0000 |
commit | cd6249dfc5f6b183fa249f223503732d2d4a52c6 (patch) | |
tree | 0f11064ba92c49adb2f2f6decd3980d717a74712 /src/blitter | |
parent | a9bdd04072b6faaef0502bac497335d2323d9da7 (diff) | |
download | openttd-cd6249dfc5f6b183fa249f223503732d2d4a52c6.tar.xz |
(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)
Diffstat (limited to 'src/blitter')
-rw-r--r-- | src/blitter/8bpp_optimized.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/8bpp_optimized.cpp b/src/blitter/8bpp_optimized.cpp index 24b9252b7..5106bd15f 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; |