Graphics: Fix resize_screen
This commit is contained in:
parent
c5c58fa9cd
commit
50e393fe6e
|
@ -119,7 +119,7 @@ void EventThread::process(RGSSThreadData &rtData)
|
|||
case SDL_WINDOWEVENT :
|
||||
switch (event.window.event)
|
||||
{
|
||||
case SDL_WINDOWEVENT_RESIZED :
|
||||
case SDL_WINDOWEVENT_SIZE_CHANGED :
|
||||
windowSizeMsg.notifyChange(event.window.data1,
|
||||
event.window.data2);
|
||||
break;
|
||||
|
|
|
@ -809,8 +809,6 @@ void Graphics::resizeScreen(int width, int height)
|
|||
if (p->scRes == size)
|
||||
return;
|
||||
|
||||
shState->eThread().requestWindowResize(width, height);
|
||||
|
||||
p->scRes = size;
|
||||
|
||||
p->screen.setResolution(width, height);
|
||||
|
@ -826,7 +824,7 @@ void Graphics::resizeScreen(int width, int height)
|
|||
TEX::bind(p->transBuffer.tex);
|
||||
TEX::allocEmpty(width, height);
|
||||
|
||||
p->updateScreenResoRatio(p->threadData);
|
||||
shState->eThread().requestWindowResize(width, height);
|
||||
}
|
||||
|
||||
DEF_ATTR_RD_SIMPLE(Graphics, Brightness, int, p->brightness)
|
||||
|
|
Loading…
Reference in New Issue