[client] overlay: allow the fps and graph windows to be moved

This commit is contained in:
Geoffrey McRae 2021-07-31 15:35:53 +10:00
parent 7f6fd02d06
commit a098bab114
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
ImVec2 pos = {0.0f, 0.0f}; ImVec2 pos = {0.0f, 0.0f};
igSetNextWindowBgAlpha(0.6f); igSetNextWindowBgAlpha(0.6f);
igSetNextWindowPos(pos, 0, pos); igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
igPushStyleVarVec2(ImGuiStyleVar_WindowPadding, (ImVec2) { 4.0f , 4.0f }); igPushStyleVarVec2(ImGuiStyleVar_WindowPadding, (ImVec2) { 4.0f , 4.0f });
igPushStyleVarVec2(ImGuiStyleVar_WindowMinSize, (ImVec2) { 0.0f , 0.0f }); igPushStyleVarVec2(ImGuiStyleVar_WindowMinSize, (ImVec2) { 0.0f , 0.0f });

View file

@ -99,7 +99,7 @@ static int graphs_render(void * udata, bool interactive,
ImVec2 pos = {0.0f, 0.0f}; ImVec2 pos = {0.0f, 0.0f};
igSetNextWindowBgAlpha(0.4f); igSetNextWindowBgAlpha(0.4f);
igSetNextWindowPos(pos, 0, pos); igSetNextWindowPos(pos, ImGuiCond_FirstUseEver, pos);
igBegin( igBegin(
"Performance Metrics", "Performance Metrics",