mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05:32 +02:00
Merge pull request #176 from Splendide-Imaginarius/mkxp-z-hires-default-screen
Fix Hires mode with default resolution
This commit is contained in:
commit
988ba47905
1 changed files with 5 additions and 2 deletions
|
@ -834,7 +834,10 @@ struct GraphicsPrivate {
|
|||
IntruList<Disposable> dispList;
|
||||
|
||||
GraphicsPrivate(RGSSThreadData *rtData)
|
||||
: scRes(DEF_SCREEN_W, DEF_SCREEN_H), scResLores(scRes), scSize(scRes),
|
||||
: scResLores(DEF_SCREEN_W, DEF_SCREEN_H),
|
||||
scRes(rtData->config.enableHires ? (int)lround(rtData->config.framebufferScalingFactor * DEF_SCREEN_W) : DEF_SCREEN_W,
|
||||
rtData->config.enableHires ? (int)lround(rtData->config.framebufferScalingFactor * DEF_SCREEN_H) : DEF_SCREEN_H),
|
||||
scSize(scRes),
|
||||
winSize(rtData->config.defScreenW, rtData->config.defScreenH),
|
||||
screen(scRes.x, scRes.y), threadData(rtData),
|
||||
glCtx(SDL_GL_GetCurrentContext()), multithreadedMode(true),
|
||||
|
@ -1492,7 +1495,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