Make close event trigger consistently
This commit is contained in:
parent
b41f228c10
commit
5a57c37ae9
@ -304,7 +304,6 @@ void EventProcess(SDL_Event event)
|
||||
switch (event.type)
|
||||
{
|
||||
case SDL_QUIT:
|
||||
engine->onClose();
|
||||
if (engine->GetFastQuit() || engine->CloseWindow())
|
||||
engine->Exit();
|
||||
break;
|
||||
|
@ -72,6 +72,7 @@ void Engine::UnBreak()
|
||||
|
||||
void Engine::Exit()
|
||||
{
|
||||
onClose();
|
||||
running_ = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user