diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-03-08 15:43:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-08 15:43:08 +0100 |
commit | ae1f7bd6954176c02effe4048e8b9fe900038389 (patch) | |
tree | 47ec994c2bc5f91cf2e26fbcad0e30236313afa5 /src/blitter | |
parent | b93d7dd3cbd6dae2011e7863ba8a7aa19614771e (diff) | |
download | openttd-ae1f7bd6954176c02effe4048e8b9fe900038389.tar.xz |
Fix 937d60f2: Broken company colours for 40bpp-blitter. (#8821)
Diffstat (limited to 'src/blitter')
-rw-r--r-- | src/blitter/32bpp_optimized.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blitter/32bpp_optimized.cpp b/src/blitter/32bpp_optimized.cpp index fa1f0bb38..beafcff37 100644 --- a/src/blitter/32bpp_optimized.cpp +++ b/src/blitter/32bpp_optimized.cpp @@ -356,6 +356,10 @@ template <bool Tpal_to_rgb> Sprite *Blitter_32bppOptimized::EncodeInternal(const dst_px->r = colour.r; dst_px->g = colour.g; dst_px->b = colour.b; + } else { + dst_px->r = src->r; + dst_px->g = src->g; + dst_px->b = src->b; } } else { dst_px->r = src->r; |