[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

+3 -2
View File
@@ -695,9 +695,10 @@ void app_releaseAllKeybinds(void)
}
}
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)
{
return overlayGraph_register(name, buffer, min, max);
return overlayGraph_register(name, buffer, min, max, formatFn);
}
void app_unregisterGraph(GraphHandle handle)