From ccd94d28c00b4e0cd76db0a75b87006af597d7c6 Mon Sep 17 00:00:00 2001 From: salmonik Date: Tue, 27 Oct 2026 13:03:12 +0100 Subject: Speed graph: show current speed at the top-right --- src/esp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/esp.cpp b/src/esp.cpp index e1e8fac..1e00a92 100644 --- a/src/esp.cpp +++ b/src/esp.cpp @@ -406,6 +406,12 @@ static void draw_speed_graph() { char label[32]; snprintf(label, sizeof(label), "max %d", (int)maxv); draw_text_col(x + 3, y + 2, label, 200, 200, 200); + + int cur_idx = (g_speed_head + SPEED_SAMPLES - 1) % SPEED_SAMPLES; + char cur[16]; + snprintf(cur, sizeof(cur), "%d", (int)g_speed_samples[cur_idx]); + int cur_w = (int)strlen(cur) * 8; + draw_text_col(x + w - 4 - cur_w, y + 2, cur, 255, 255, 255); } // Draw the parent->child bone links. Bone snapshots are world-space matrices -- cgit v1.2.3