mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 22:55:04 -06:00
overlays: Fix bug in box padding calculation
This commit is contained in:
parent
f880a00cba
commit
984c562500
@ -938,10 +938,10 @@ namespace rsx
|
|||||||
// Make padding work for images (treat them as the content instead of the 'background')
|
// Make padding work for images (treat them as the content instead of the 'background')
|
||||||
auto& verts = cmd_img.verts;
|
auto& verts = cmd_img.verts;
|
||||||
|
|
||||||
verts[0] += vertex(padding_left, padding_bottom, 0, 0);
|
verts[0] += vertex(padding_left, padding_top, 0, 0);
|
||||||
verts[1] += vertex(-padding_right, padding_bottom, 0, 0);
|
verts[1] += vertex(-padding_right, padding_top, 0, 0);
|
||||||
verts[2] += vertex(padding_left, -padding_top, 0, 0);
|
verts[2] += vertex(padding_left, -padding_bottom, 0, 0);
|
||||||
verts[3] += vertex(-padding_right, -padding_top, 0, 0);
|
verts[3] += vertex(-padding_right, -padding_bottom, 0, 0);
|
||||||
|
|
||||||
m_is_compiled = true;
|
m_is_compiled = true;
|
||||||
return compiled_resources;
|
return compiled_resources;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user