mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +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;
|
IntruList<Disposable> dispList;
|
||||||
|
|
||||||
GraphicsPrivate(RGSSThreadData *rtData)
|
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),
|
winSize(rtData->config.defScreenW, rtData->config.defScreenH),
|
||||||
screen(scRes.x, scRes.y), threadData(rtData),
|
screen(scRes.x, scRes.y), threadData(rtData),
|
||||||
glCtx(SDL_GL_GetCurrentContext()), multithreadedMode(true),
|
glCtx(SDL_GL_GetCurrentContext()), multithreadedMode(true),
|
||||||
|
@ -1492,7 +1495,7 @@ void Graphics::resizeScreen(int width, int height) {
|
||||||
|
|
||||||
Vec2i size(width, height);
|
Vec2i size(width, height);
|
||||||
|
|
||||||
if (p->scRes == size)
|
if (p->scRes == size && p->scResLores == sizeLores)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
p->scRes = size;
|
p->scRes = size;
|
||||||
|
|
Loading…
Add table
Reference in a new issue