mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
overlays/perf_overlay: Make pos, font, opacity, margin configurable
- Also some perf overlay refactoring
This commit is contained in:
parent
58f4b26134
commit
dd0684b58a
5 changed files with 178 additions and 38 deletions
|
@ -224,6 +224,23 @@ inline void fmt_class_string<detail_level>::format(std::string& out, u64 arg)
|
|||
});
|
||||
}
|
||||
|
||||
template <>
|
||||
inline void fmt_class_string<screen_quadrant>::format(std::string& out, u64 arg)
|
||||
{
|
||||
format_enum(out, arg, [](screen_quadrant value)
|
||||
{
|
||||
switch (value)
|
||||
{
|
||||
case screen_quadrant::top_left: return "Top Left";
|
||||
case screen_quadrant::top_right: return "Top Right";
|
||||
case screen_quadrant::bottom_left: return "Bottom Left";
|
||||
case screen_quadrant::bottom_right: return "Bottom Right";
|
||||
}
|
||||
|
||||
return unknown;
|
||||
});
|
||||
}
|
||||
|
||||
template <>
|
||||
void fmt_class_string<tsx_usage>::format(std::string& out, u64 arg)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue