From e208b30511e00a11901a555ab0a1364e4b89bbb4 Mon Sep 17 00:00:00 2001 From: Bobby Lucero Date: Wed, 24 Apr 2024 12:08:18 -0400 Subject: [PATCH] fixed "race condition" mentioned previously. It was not a race condition, it was me being an idiot. --- src/Graphics/Graphics.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Graphics/Graphics.cpp b/src/Graphics/Graphics.cpp index 6817c87..ffe87a7 100644 --- a/src/Graphics/Graphics.cpp +++ b/src/Graphics/Graphics.cpp @@ -21,14 +21,9 @@ Graphics::Graphics(int screenWidth, int screenHeight, int startupScale) : screen virtualScreen = LoadRenderTexture(screenWidth, screenHeight); virtualScreenLocalBounds = {0.0f, 0.0f, (float)virtualScreen.texture.width, -(float)virtualScreen.texture.height }; + virtualScreenWindowBounds = {0.0f, 0.0f, (float)windowWidth, (float)windowHeight}; updateFunction = nullptr; calculateScreenPositionInWindow(); - - std::cout << origin.x << " : " << origin.y << std::endl; - std::cout << virtualScreenLocalBounds.width << " : " << virtualScreenLocalBounds.height << std::endl; - std::cout << virtualScreenWindowBounds.width << " : " << virtualScreenWindowBounds.height << std::endl; - - } void Graphics::draw(pkpy::VM* vm) {