[client] overlay/graphs: allow the graph to have a custom title format

This commit is contained in:
Geoffrey McRae committed 2022-01-17 22:08:56 +11:00
1 parent 42ed0d7638
commit 464fee3e20
7 files changed
+43 -24

No files matched your search

+4 -1
View File
@@ -110,8 +110,11 @@ void app_invalidateOverlay(bool renderTwice);
struct OverlayGraph;
typedef struct OverlayGraph * GraphHandle;
typedef const char * (*GraphFormatFn)(const char * name,
float min, float max, float avg, float freq, float last);
GraphHandle app_registerGraph(const char * name, RingBuffer buffer, float min, float max);
GraphHandle app_registerGraph(const char * name, RingBuffer buffer,
float min, float max, GraphFormatFn formatFn);
void app_unregisterGraph(GraphHandle handle);
void app_overlayConfigRegister(const char * title,