mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:31:46 +00:00
[client] overlay: allow the fps and graph windows to be moved
This commit is contained in:
parent
7f6fd02d06
commit
a098bab114
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
|
|||
|
||||
ImVec2 pos = {0.0f, 0.0f};
|
||||
igSetNextWindowBgAlpha(0.6f);
|
||||
igSetNextWindowPos(pos, 0, pos);
|
||||
igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
|
||||
igPushStyleVarVec2(ImGuiStyleVar_WindowPadding, (ImVec2) { 4.0f , 4.0f });
|
||||
igPushStyleVarVec2(ImGuiStyleVar_WindowMinSize, (ImVec2) { 0.0f , 0.0f });
|
||||
|
||||
|
|
|
@ -99,7 +99,7 @@ static int graphs_render(void * udata, bool interactive,
|
|||
|
||||
ImVec2 pos = {0.0f, 0.0f};
|
||||
igSetNextWindowBgAlpha(0.4f);
|
||||
igSetNextWindowPos(pos, 0, pos);
|
||||
igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
|
||||
|
||||
igBegin(
|
||||
"Performance Metrics",
|
||||
|
|
Loading…
Reference in a new issue