Change the resolution

Instead of using a static 640/480, now the resolution is dynamic and determined from the config.cpp.
This commit is contained in:
pk-2000 2021-09-01 19:14:53 +03:00 committed by GitHub
parent 2f4c775196
commit a9af6ab36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ GLState::GLState(const Config &conf)
blendMode.init(BlendNormal); blendMode.init(BlendNormal);
blend.init(true); blend.init(true);
scissorTest.init(false); scissorTest.init(false);
scissorBox.init(IntRect(0, 0, 640, 480)); scissorBox.init(IntRect(0, 0, conf.defScreenW, conf.defScreenH));
program.init(0); program.init(0);
if (conf.maxTextureSize > 0) if (conf.maxTextureSize > 0)