mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
rsx/overlays: Minor fixups
This commit is contained in:
parent
170fd813f0
commit
f007188fa0
1 changed files with 7 additions and 4 deletions
|
@ -143,23 +143,24 @@ namespace rsx
|
||||||
ready_set.pop_front();
|
ready_set.pop_front();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vis_set.empty() && ready_set.empty())
|
if (vis_set.empty())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render reversed list. Oldest entries are furthest from the border
|
// Render reversed list. Oldest entries are furthest from the border
|
||||||
u16 y_offset = 8, margin = 4, index = 0;
|
constexpr u16 spacing = 4;
|
||||||
|
u16 y_offset = 8, index = 0;
|
||||||
for (auto it = vis_set.rbegin(); it != vis_set.rend(); ++it, ++index)
|
for (auto it = vis_set.rbegin(); it != vis_set.rend(); ++it, ++index)
|
||||||
{
|
{
|
||||||
if (origin == message_pin_location::top) [[ likely ]]
|
if (origin == message_pin_location::top) [[ likely ]]
|
||||||
{
|
{
|
||||||
it->update(index, cur_time, y_offset);
|
it->update(index, cur_time, y_offset);
|
||||||
y_offset += (margin + it->h);
|
y_offset += (spacing + it->h);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
y_offset += (margin + it->h);
|
y_offset += (spacing + it->h);
|
||||||
it->update(index, cur_time, virtual_height - y_offset);
|
it->update(index, cur_time, virtual_height - y_offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -231,6 +232,8 @@ namespace rsx
|
||||||
case message_pin_location::bottom:
|
case message_pin_location::bottom:
|
||||||
return check_list(m_ready_queue_bottom) || check_list(m_visible_items_bottom);
|
return check_list(m_ready_queue_bottom) || check_list(m_visible_items_bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace overlays
|
} // namespace overlays
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue