mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
overlays: Fix bug in box padding calculation
This commit is contained in:
parent
f880a00cba
commit
984c562500
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue