Skip to content

Commit

Permalink
# - opengl dims
Browse files Browse the repository at this point in the history
  • Loading branch information
en-software committed Dec 1, 2023
1 parent 81ab370 commit b3fb0e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions orchestrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ namespace blooDot::Orchestrator
renderer,
SDL_PIXELFORMAT_RGBA8888,
SDL_TEXTUREACCESS_TARGET,
1024,
768
blooDot::Settings::GetPhysicalArenaWidth(),
blooDot::Settings::GetPhysicalArenaHeight()
);

// go!
Expand Down
5 changes: 3 additions & 2 deletions shader-engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "chunk-constants.h"
#include "dexassy.h"
#include "resutil.h"
#include "settings.h"

using namespace blooDot::Res;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b3fb0e4

Please sign in to comment.