diff --git a/Source/engine/render/cl2_render.cpp b/Source/engine/render/cl2_render.cpp index 34eda28c9..db7d67205 100644 --- a/Source/engine/render/cl2_render.cpp +++ b/Source/engine/render/cl2_render.cpp @@ -341,8 +341,18 @@ void RenderOutlineForPixel(std::uint8_t *dst, int dstPitch, std::uint8_t color) template void RenderOutlineForPixels(std::uint8_t *dst, int dstPitch, int width, std::uint8_t color) { - while (width-- > 0) - RenderOutlineForPixel(dst++, dstPitch, color); + if (North) + std::memset(dst - dstPitch, color, width); + + if (West && East) + std::memset(dst - 1, color, width + 2); + else if (West) + std::memset(dst - 1, color, width); + else if (East) + std::memset(dst + 1, color, width); + + if (South) + std::memset(dst + dstPitch, color, width); } template