From 5a1f5acae817650ad966ce33c9c079e4af0d2834 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 23 Jun 2026 01:26:20 +0200 Subject: [PATCH] window resizing sorted sort of --- src/main.cpp | 4 ++-- src/state.cpp | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 38c4084..f128c0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,8 +43,8 @@ int main(){ state->settings.speed = (state->settings.grid * 16.0f) * (state->settings.bpm / 120.f); - state->settings.width = monitor_width - 300; - state->settings.height = monitor_height - 300; + state->settings.width = GetScreenWidth(); + state->settings.height = GetScreenHeight(); SetTargetFPS(state->settings.fps); diff --git a/src/state.cpp b/src/state.cpp index 1ca3a72..4dd3f83 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -22,8 +22,11 @@ namespace VISEQ::APP{ void State::update(Camera2D camera){ - if(istate != old_istate) std::cout << state_string[istate] << std::endl; + settings.width = GetScreenWidth(); + settings.height = GetScreenHeight(); + if(istate != old_istate) std::cout << state_string[istate] << std::endl; + mouse_delta = {GetMouseDelta().x, GetMouseDelta().y}; settings.speed = (settings.grid * 16.0f) * (settings.bpm / 120.f);