mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-29 14:50:20 +00:00
ImGuiOverlays: Remove unused code
This commit is contained in:
parent
4616dd3293
commit
f5c3280202
@ -391,31 +391,6 @@ static void DrawPerformanceStat(ImDrawList* dl, float& position_y, ImFont* font,
|
|||||||
position_y += height;
|
position_y += height;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
static void DrawMultiLinePerformanceStat(ImDrawList* dl, float& position_y, ImFont* font, float size, float alt_weight,
|
|
||||||
ImU32 alt_color, float shadow_offset, float rbounds, float spacing,
|
|
||||||
std::string_view text)
|
|
||||||
{
|
|
||||||
std::string_view::size_type pos = 0;
|
|
||||||
for (;;)
|
|
||||||
{
|
|
||||||
const std::string_view::size_type next_line_pos = text.find('\n', pos);
|
|
||||||
const std::string_view line =
|
|
||||||
text.substr(pos, (next_line_pos == std::string_view::npos) ? std::string_view::npos : (next_line_pos - pos));
|
|
||||||
if (!line.empty())
|
|
||||||
{
|
|
||||||
DrawPerformanceStat(dl, position_y, font, size, alt_weight, 0, shadow_offset, rbounds, line);
|
|
||||||
position_y += spacing;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (next_line_pos == std::string_view::npos)
|
|
||||||
break;
|
|
||||||
|
|
||||||
pos = next_line_pos + 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void ImGuiManager::DrawPerformanceOverlay(const GPUBackend* gpu, float& position_y, float scale, float margin,
|
void ImGuiManager::DrawPerformanceOverlay(const GPUBackend* gpu, float& position_y, float scale, float margin,
|
||||||
float spacing)
|
float spacing)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user