Changeset - r6977:ba5dd58aa1ea
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-06-20 10:26:39
truelight@openttd.org
(svn r10233) -Fix: 8bpp-optimized encoder fucked up if 255+ pixels in a row were non-transparent (tnx boekabart)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/blitter/8bpp_optimized.cpp
Show inline comments
 
@@ -151,7 +151,7 @@ Sprite *Blitter_8bppOptimized::Encode(Sp
 
					if (rx == sprite->width) break;
 
				}
 

	
 
				if (last_color == 0 || color == 0) {
 
				if (last_color == 0 || color == 0 || pixels > 250) {
 
					if (count_index != 0) {
 
						/* Write how many non-transparent bytes we get */
 
						temp_dst[count_index] = pixels;
0 comments (0 inline, 0 general)