Changeset - r18478:f4fc8bbb005e
[Not reviewed]
master
0 1 0
peter1138 - 13 years ago 2011-11-26 13:36:38
peter1138@openttd.org
(svn r23332) -Fix (r23316): Length of transparent pixels could exceed a byte. (frosch)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/blitter/8bpp_optimized.cpp
Show inline comments
 
@@ -182,7 +182,7 @@ Sprite *Blitter_8bppOptimized::Encode(Sp
 
						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;
0 comments (0 inline, 0 general)