[client] imgui: make graph y-axis configurable

The default of [0, 50] makes sense for FPS/UPS graphs, but does not for
things like the import graph. The latter should not take more than 5 ms
for sure.

This commit allows the min/max y-axis value to be specified when registering
the graph.
This commit is contained in:
Quantum
2021-07-28 21:56:50 -04:00
committed by Geoffrey McRae
parent aff3bff8b0
commit 134829cbf2
7 changed files with 15 additions and 11 deletions

View File

@@ -98,7 +98,7 @@ void app_freeOverlays(void);
struct OverlayGraph;
typedef struct OverlayGraph * GraphHandle;
GraphHandle app_registerGraph(const char * name, RingBuffer buffer);
GraphHandle app_registerGraph(const char * name, RingBuffer buffer, float min, float max);
void app_unregisterGraph(GraphHandle handle);
void app_clipboardRelease(void);