[client] overlay: cosmetic changes to the overlay display

This commit is contained in:
Geoffrey McRae
2021-07-25 16:48:50 +10:00
parent e7761abf3c
commit 2ef80a5d34
4 changed files with 9 additions and 2 deletions

View File

@@ -42,6 +42,8 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
ImVec2 pos = {0.0f, 0.0f};
igSetNextWindowBgAlpha(0.6f);
igSetNextWindowPos(pos, 0, pos);
igPushStyleVarVec2(ImGuiStyleVar_WindowPadding, (ImVec2) { 4.0f , 4.0f });
igPushStyleVarVec2(ImGuiStyleVar_WindowMinSize, (ImVec2) { 0.0f , 0.0f });
igBegin(
"FPS",
@@ -58,6 +60,8 @@ static int fps_render(void * udata, bool interactive, struct Rect * windowRects,
overlayGetImGuiRect(windowRects);
igEnd();
igPopStyleVar(2);
return 1;
}