mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Fix Hires mode with default resolution
This commit is contained in:
parent
487cde38db
commit
58a3c36a10
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue