window resizing sorted sort of
This commit is contained in:
+2
-2
@@ -43,8 +43,8 @@ int main(){
|
|||||||
|
|
||||||
state->settings.speed = (state->settings.grid * 16.0f) * (state->settings.bpm / 120.f);
|
state->settings.speed = (state->settings.grid * 16.0f) * (state->settings.bpm / 120.f);
|
||||||
|
|
||||||
state->settings.width = monitor_width - 300;
|
state->settings.width = GetScreenWidth();
|
||||||
state->settings.height = monitor_height - 300;
|
state->settings.height = GetScreenHeight();
|
||||||
|
|
||||||
SetTargetFPS(state->settings.fps);
|
SetTargetFPS(state->settings.fps);
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -22,8 +22,11 @@ namespace VISEQ::APP{
|
|||||||
|
|
||||||
void State::update(Camera2D camera){
|
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};
|
mouse_delta = {GetMouseDelta().x, GetMouseDelta().y};
|
||||||
|
|
||||||
settings.speed = (settings.grid * 16.0f) * (settings.bpm / 120.f);
|
settings.speed = (settings.grid * 16.0f) * (settings.bpm / 120.f);
|
||||||
|
|||||||
Reference in New Issue
Block a user