UIAtlas: Fix bug when adding 1px border to images (was a no-op by accident)

This commit is contained in:
Henrik Rydgård committed 2025-10-21 11:08:53 +02:00
1 parent c5b1f2ffb0
commit 3ae0057285
1 file changed
+3
+3
View File
@@ -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) {