Coding style fixes
This commit is contained in:
parent
092e6ad948
commit
43321b8ed7
|
@ -319,14 +319,11 @@ void EventThread::process(RGSSThreadData &rtData)
|
||||||
void EventThread::cleanup()
|
void EventThread::cleanup()
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
||||||
while (SDL_PollEvent(&event))
|
while (SDL_PollEvent(&event))
|
||||||
{
|
|
||||||
if (event.type == usrId[REQUEST_MESSAGEBOX])
|
if (event.type == usrId[REQUEST_MESSAGEBOX])
|
||||||
{
|
|
||||||
free(event.user.data1);
|
free(event.user.data1);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EventThread::resetInputStates()
|
void EventThread::resetInputStates()
|
||||||
{
|
{
|
||||||
|
@ -424,6 +421,7 @@ void EventThread::notifyFrame()
|
||||||
{
|
{
|
||||||
fps.immInitFlag = false;
|
fps.immInitFlag = false;
|
||||||
fps.immFiniFlag = true;
|
fps.immFiniFlag = true;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -461,7 +461,7 @@ struct GraphicsPrivate
|
||||||
{
|
{
|
||||||
if (threadData->windowSizeMsg.pollChange(&winSize.x, &winSize.y))
|
if (threadData->windowSizeMsg.pollChange(&winSize.x, &winSize.y))
|
||||||
{
|
{
|
||||||
// some GL drivers change the viewport on window resize
|
/* some GL drivers change the viewport on window resize */
|
||||||
glState.viewport.refresh();
|
glState.viewport.refresh();
|
||||||
recalculateScreenSize();
|
recalculateScreenSize();
|
||||||
updateScreenResoRatio();
|
updateScreenResoRatio();
|
||||||
|
|
Loading…
Reference in New Issue