summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 02584b9..e8e0361 100644
--- a/main.cpp
+++ b/main.cpp
@@ -432,6 +432,7 @@ int main(void) {
input->mouse_x = x;
input->mouse_y = y;
}
+
{
Uint32 this_frame_ticks = SDL_GetTicks();
@@ -444,6 +445,8 @@ int main(void) {
sim_frame(&frame);
+ SDL_SetWindowFullscreen(window, frame.fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
+
SDL_SetWindowTitle(window, frame.title);
if (frame.close) break;