mirror of https://github.com/mgba-emu/mgba.git
SDL: Add SDL_QUIT for GB runloop
This commit is contained in:
parent
c59bfd173d
commit
52adcb68db
|
@ -136,6 +136,9 @@ void mSDLGLRunloopGB(struct mSDLRenderer* renderer, void* user) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (event.type == SDL_QUIT) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||||
// Event handling can change the size of the screen
|
// Event handling can change the size of the screen
|
||||||
|
|
Loading…
Reference in New Issue