SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit bef1529bb24b3299e3b1a8b5cb068c0d6d26953c parent 18126994ff35c880677d51728aa5f995219592e1 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 29 Apr 2022 01:11:30 +0300 Merge pull request #443 from OFFTKP/issue-442 Fix random segmentation fault (fixes #442 fixes #425) Diffstat:
| M | SDL/gui.c | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/SDL/gui.c b/SDL/gui.c @@ -1195,7 +1195,8 @@ void run_gui(bool is_running) recalculate_menu_height(); current_selection = 0; scroll = 0; - do { + while (true) { + SDL_WaitEvent(&event); /* Convert Joypad and mouse events (We only generate down events) */ if (gui_state != WAITING_FOR_KEY && gui_state != WAITING_FOR_JBUTTON) { switch (event.type) { @@ -1650,5 +1651,5 @@ void run_gui(bool is_running) render_texture(pixels, NULL); #endif } - } while (SDL_WaitEvent(&event)); + } }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.