[client] overlay: allow the fps and graph windows to be moved
This commit is contained in:
1 parent
7f6fd02d06
commit
a098bab114
2 files changed
+2
-2
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user