Fix Hires mode with default resolution

This commit is contained in:
Splendide Imaginarius 2024-03-21 06:18:55 +00:00
parent 487cde38db
commit 58a3c36a10

View file

@ -1166,6 +1166,10 @@ Graphics::Graphics(RGSSThreadData *data) {
} else if (data->config.fixedFramerate < 0) {
p->fpsLimiter.disabled = true;
}
if (shState->config().enableHires) {
resizeScreen(p->scResLores.x, p->scResLores.y);
}
}
Graphics::~Graphics() { delete p; }
@ -1492,7 +1496,7 @@ void Graphics::resizeScreen(int width, int height) {
Vec2i size(width, height);
if (p->scRes == size)
if (p->scRes == size && p->scResLores == sizeLores)
return;
p->scRes = size;