aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 968027a..0e2911c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -58,6 +58,9 @@ int main() {
auto can_render = true;
vkrenderer renderer { wnd, inputs };
+ ImGuiIO& io = ImGui::GetIO();
+ io.DisplaySize.x = (float)width;
+ io.DisplaySize.y = (float)height;
while(wnd.isOpen) {
auto reset_accumulation = false;