mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 17:01:24 +12:00
overlays: fix offset of right edge oriented graphs when detail level is none
This commit is contained in:
parent
f258ae795c
commit
84f123041a
1 changed files with 4 additions and 7 deletions
|
@ -96,9 +96,6 @@ namespace rsx
|
|||
const positionu margin { m_margin_x, m_margin_y };
|
||||
positionu pos;
|
||||
|
||||
const auto overlay_width = m_body.w + margin.x;
|
||||
const auto overlay_height = m_body.h + margin.y;
|
||||
|
||||
u16 graph_width = 0;
|
||||
u16 graph_height = 0;
|
||||
|
||||
|
@ -126,16 +123,16 @@ namespace rsx
|
|||
pos.y = margin.y;
|
||||
break;
|
||||
case screen_quadrant::top_right:
|
||||
pos.x = virtual_width - overlay_width;
|
||||
pos.x = virtual_width - std::max(m_body.w, graph_width) - margin.x;
|
||||
pos.y = margin.y;
|
||||
break;
|
||||
case screen_quadrant::bottom_left:
|
||||
pos.x = margin.x;
|
||||
pos.y = virtual_height - overlay_height - graph_height;
|
||||
pos.y = virtual_height - m_body.h - graph_height - margin.y;
|
||||
break;
|
||||
case screen_quadrant::bottom_right:
|
||||
pos.x = virtual_width - overlay_width;
|
||||
pos.y = virtual_height - overlay_height - graph_height;
|
||||
pos.x = virtual_width - std::max(m_body.w, graph_width) - margin.x;
|
||||
pos.y = virtual_height - m_body.h - graph_height - margin.y;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue