mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 23:07:04 +00:00
[client] egl/imgui: use imgui for night vision gain configuration
This commit is contained in:
parent
ac3677d9ae
commit
3e32e01c30
@ -206,6 +206,20 @@ void egl_desktop_config_ui(EGL_Desktop * desktop)
|
|||||||
igEndCombo();
|
igEndCombo();
|
||||||
}
|
}
|
||||||
igPopItemWidth();
|
igPopItemWidth();
|
||||||
|
|
||||||
|
igText("Night vision mode:");
|
||||||
|
igSameLine(0.0f, -1.0f);
|
||||||
|
igPushItemWidth(igGetWindowWidth() - igGetCursorPosX() - igGetStyle()->WindowPadding.x);
|
||||||
|
|
||||||
|
const char * format;
|
||||||
|
switch (desktop->nvGain)
|
||||||
|
{
|
||||||
|
case 0: format = "off"; break;
|
||||||
|
case 1: format = "on"; break;
|
||||||
|
default: format = "gain: %d";
|
||||||
|
}
|
||||||
|
igSliderInt("##nvgain", &desktop->nvGain, 0, desktop->nvMax, format, 0);
|
||||||
|
igPopItemWidth();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool egl_desktop_setup(EGL_Desktop * desktop, const LG_RendererFormat format)
|
bool egl_desktop_setup(EGL_Desktop * desktop, const LG_RendererFormat format)
|
||||||
|
Loading…
Reference in New Issue
Block a user