From b3fb0e473da3a9eb4a543c302addced9da9dc7d5 Mon Sep 17 00:00:00 2001 From: dlatikay Date: Fri, 1 Dec 2023 22:17:49 +0100 Subject: [PATCH] # - opengl dims --- orchestrator.cpp | 4 ++-- shader-engine.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/orchestrator.cpp b/orchestrator.cpp index bce0779..08613b5 100644 --- a/orchestrator.cpp +++ b/orchestrator.cpp @@ -150,8 +150,8 @@ namespace blooDot::Orchestrator renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, - 1024, - 768 + blooDot::Settings::GetPhysicalArenaWidth(), + blooDot::Settings::GetPhysicalArenaHeight() ); // go! diff --git a/shader-engine.cpp b/shader-engine.cpp index 6aca351..036deab 100644 --- a/shader-engine.cpp +++ b/shader-engine.cpp @@ -4,6 +4,7 @@ #include "chunk-constants.h" #include "dexassy.h" #include "resutil.h" +#include "settings.h" using namespace blooDot::Res; @@ -121,8 +122,8 @@ namespace blooDot::ShaderEngine GLfloat minu, maxu, minv, maxv; minx = 0.0f; - miny = 768.0f; - maxx = 1024; + miny = (float)blooDot::Settings::GetPhysicalArenaHeight(); + maxx = (float)blooDot::Settings::GetPhysicalArenaWidth(); maxy = 0.0f; minu = 0.0f; maxu = 1.0f;