overlays: Fix bug in box padding calculation

This commit is contained in:
kd-11 2026-03-11 02:19:27 +03:00 committed by kd-11
parent f880a00cba
commit 984c562500

View file

@ -938,10 +938,10 @@ namespace rsx
// Make padding work for images (treat them as the content instead of the 'background')
auto& verts = cmd_img.verts;
verts[0] += vertex(padding_left, padding_bottom, 0, 0);
verts[1] += vertex(-padding_right, padding_bottom, 0, 0);
verts[2] += vertex(padding_left, -padding_top, 0, 0);
verts[3] += vertex(-padding_right, -padding_top, 0, 0);
verts[0] += vertex(padding_left, padding_top, 0, 0);
verts[1] += vertex(-padding_right, padding_top, 0, 0);
verts[2] += vertex(padding_left, -padding_bottom, 0, 0);
verts[3] += vertex(-padding_right, -padding_bottom, 0, 0);
m_is_compiled = true;
return compiled_resources;