mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-21 06:01:43 +00:00
st/gui: Fix warning (false positive)
This commit is contained in:
parent
26756cc52d
commit
f434de27bd
|
@ -212,7 +212,7 @@ scene_render(struct gui_scene *scene, struct gui_program *p)
|
||||||
struct xrt_tracking_override *o = &ts->overrides[ts->editing_override];
|
struct xrt_tracking_override *o = &ts->overrides[ts->editing_override];
|
||||||
|
|
||||||
igBegin("Tracker Device Offset", NULL, 0);
|
igBegin("Tracker Device Offset", NULL, 0);
|
||||||
int target, tracker;
|
int target = 0, tracker = 0;
|
||||||
if (get_indices(p, ts, o, &target, &tracker)) {
|
if (get_indices(p, ts, o, &target, &tracker)) {
|
||||||
igText("Editing %s [%s] <- %s [%s]", p->xdevs[target]->str, o->target_device_serial,
|
igText("Editing %s [%s] <- %s [%s]", p->xdevs[target]->str, o->target_device_serial,
|
||||||
p->xdevs[tracker]->str, o->tracker_device_serial);
|
p->xdevs[tracker]->str, o->tracker_device_serial);
|
||||||
|
|
Loading…
Reference in a new issue