Resize screen auto adjustment

Instead of using a window fixed 640/480 static size, the width and height will be determined from the game's thread window size.
This commit is contained in:
pk-2000 2021-09-01 19:21:01 +03:00 committed by GitHub
parent a9af6ab36f
commit 12b824903c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -926,8 +926,8 @@ int Graphics::height() const
void Graphics::resizeScreen(int width, int height)
{
width = clamp(width, 1, 640);
height = clamp(height, 1, 480);
width = clamp(width, 1, p->threadData->config.defScreenW);
height = clamp(height, 1, p->threadData->config.defScreenH);
Vec2i size(width, height);