aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-01-20 22:08:03 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-01-20 22:08:03 +0100
commit2b1f81ba329b17a18cdd75604625076ee614f5ef (patch)
treeeb5501d6b6261e6e7745595a288b3a19fcb53aba /src/main.cpp
parent293ba47eeb804e9cb0f392c0411fcce56c37bfc9 (diff)
Update fov on window resize
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b449c4c..0de69f7 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -67,6 +67,7 @@ int main() {
} else {
canRender = true;
renderer.recreate_swapchain();
+ renderer.mapped_data->cam.set_aspect_ratio((float)event.width / (float)event.height);
}
break;
}