mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-02 22:28:14 +00:00
[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:
@@ -565,9 +565,9 @@ void app_releaseAllKeybinds(void)
|
||||
}
|
||||
}
|
||||
|
||||
GraphHandle app_registerGraph(const char * name, RingBuffer buffer)
|
||||
GraphHandle app_registerGraph(const char * name, RingBuffer buffer, float min, float max)
|
||||
{
|
||||
return overlayGraph_register(name, buffer);
|
||||
return overlayGraph_register(name, buffer, min, max);
|
||||
}
|
||||
|
||||
void app_unregisterGraph(GraphHandle handle)
|
||||
|
||||
Reference in New Issue
Block a user