Coding style fixes

This commit is contained in:
Jonas Kulla 2014-01-04 13:49:08 +01:00
parent 092e6ad948
commit 43321b8ed7
2 changed files with 3 additions and 5 deletions

View File

@ -319,13 +319,10 @@ void EventThread::process(RGSSThreadData &rtData)
void EventThread::cleanup()
{
SDL_Event event;
while (SDL_PollEvent(&event))
{
if (event.type == usrId[REQUEST_MESSAGEBOX])
{
free(event.user.data1);
}
}
}
void EventThread::resetInputStates()
@ -424,6 +421,7 @@ void EventThread::notifyFrame()
{
fps.immInitFlag = false;
fps.immFiniFlag = true;
return;
}

View File

@ -461,7 +461,7 @@ struct GraphicsPrivate
{
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();
recalculateScreenSize();
updateScreenResoRatio();