[client] add ImPlot and rework latency graphs

This commit is contained in:
Geoffrey McRae
2026-08-03 14:18:22 +10:00
parent 7533c855c2
commit 4f39270736
28 changed files with 539 additions and 172 deletions

View File

@@ -41,11 +41,8 @@
void overlayGetImGuiRect(struct Rect * rect)
{
ImVec2 size;
ImVec2 pos;
igGetWindowPos(&pos);
igGetWindowSize(&size);
ImVec2 pos = igGetWindowPos();
ImVec2 size = igGetWindowSize();
rect->x = pos.x;
rect->y = pos.y;
@@ -60,9 +57,8 @@ ImVec2 * overlayGetScreenSize(void)
static void overlayAddUnderline(ImU32 color)
{
ImVec2 min, max;
igGetItemRectMin(&min);
igGetItemRectMax(&max);
ImVec2 min = igGetItemRectMin();
ImVec2 max = igGetItemRectMax();
min.y = max.y;
ImDrawList_AddLine(igGetWindowDrawList(), min, max, color, 1.0f);
}