From 3ae0057285a8aaeee945626cddd9f91c5a014cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 21 Oct 2025 10:57:51 +0200 Subject: [PATCH] UIAtlas: Fix bug when adding 1px border to images (was a no-op by accident) --- Common/Render/AtlasGen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Common/Render/AtlasGen.cpp b/Common/Render/AtlasGen.cpp index a3bc816eb7..a66c494367 100644 --- a/Common/Render/AtlasGen.cpp +++ b/Common/Render/AtlasGen.cpp @@ -262,6 +262,9 @@ void Add1PxTransparentBorder(Image &img) { newData[(y + 1) * (img.w + 2) + (x + 1)] = c; } } + img.dat = std::move(newData); + img.w += 2; + img.h += 2; } void AddDropShadow(Image &img, int shadowSize, float intensity) {