mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10233) -Fix: 8bpp-optimized encoder fucked up if 255+ pixels in a row were non-transparent (tnx boekabart)
This commit is contained in:
parent
436eb69a39
commit
d7acd238ac
@ -151,7 +151,7 @@ Sprite *Blitter_8bppOptimized::Encode(SpriteLoader::Sprite *sprite, Blitter::All
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user