From 24d0d37d264bf32d97947a755fa5c46a4e19088d Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 27 Jul 2021 01:17:49 +0200 Subject: [PATCH] Add drop shadow to DrawMapLineSteep --- Source/engine/render/automap_render.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/engine/render/automap_render.cpp b/Source/engine/render/automap_render.cpp index 605f0821b..7942e65c1 100644 --- a/Source/engine/render/automap_render.cpp +++ b/Source/engine/render/automap_render.cpp @@ -38,12 +38,15 @@ template void DrawMapLineSteep(const Surface &out, Point from, int width, std::uint8_t colorIndex) { while (width-- > 0) { + out.SetPixel({ from.x, from.y + 1 }, 0); out.SetPixel(from, colorIndex); from.y += static_cast(DirY); + out.SetPixel({ from.x, from.y + 1 }, 0); out.SetPixel(from, colorIndex); from.y += static_cast(DirY); from.x += static_cast(DirX); } + out.SetPixel({ from.x, from.y + 1 }, 0); out.SetPixel(from, colorIndex); }