diff --git a/src/eventthread.cpp b/src/eventthread.cpp index c2088b6..ecb9d10 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -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; } diff --git a/src/graphics.cpp b/src/graphics.cpp index 7823614..be293db 100644 --- a/src/graphics.cpp +++ b/src/graphics.cpp @@ -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();