Graphics: Fix resize_screen

This commit is contained in:
Jonas Kulla 2014-08-22 23:54:26 +02:00
parent c5c58fa9cd
commit 50e393fe6e
2 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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)