mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-02 13:22:02 +00:00
[client] overlay: fix invalid label usage in igPlotLines call
This commit is contained in:
@@ -57,7 +57,9 @@ static void configCallback(void * udata, int * id)
|
|||||||
ll_forEachNL(gs.graphs, item, graph)
|
ll_forEachNL(gs.graphs, item, graph)
|
||||||
{
|
{
|
||||||
igTableNextColumn();
|
igTableNextColumn();
|
||||||
|
igPushID_Ptr(graph);
|
||||||
igCheckbox(graph->name, &graph->enabled);
|
igCheckbox(graph->name, &graph->enabled);
|
||||||
|
igPopID();
|
||||||
}
|
}
|
||||||
ll_unlock(gs.graphs);
|
ll_unlock(gs.graphs);
|
||||||
|
|
||||||
@@ -197,8 +199,9 @@ static int graphs_render(void * udata, bool interactive,
|
|||||||
title = _title;
|
title = _title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
igPushID_Ptr(graph);
|
||||||
igPlotLines_FloatPtr(
|
igPlotLines_FloatPtr(
|
||||||
(void *)graph,
|
"##graph",
|
||||||
(float *)ringbuffer_getValues(graph->buffer),
|
(float *)ringbuffer_getValues(graph->buffer),
|
||||||
ringbuffer_getLength(graph->buffer),
|
ringbuffer_getLength(graph->buffer),
|
||||||
ringbuffer_getStart (graph->buffer),
|
ringbuffer_getStart (graph->buffer),
|
||||||
@@ -207,6 +210,7 @@ static int graphs_render(void * udata, bool interactive,
|
|||||||
graph->max,
|
graph->max,
|
||||||
(ImVec2){ winSize.x, height },
|
(ImVec2){ winSize.x, height },
|
||||||
sizeof(float));
|
sizeof(float));
|
||||||
|
igPopID();
|
||||||
};
|
};
|
||||||
ll_unlock(gs.graphs);
|
ll_unlock(gs.graphs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user