summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/sdl/button-sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/sdl/button-sdl.c')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index e9fc03792c..15633eede5 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -86,7 +86,7 @@ static void button_event(int key, bool pressed);
86extern bool debug_wps; 86extern bool debug_wps;
87extern bool mapping; 87extern bool mapping;
88 88
89void gui_message_loop(void) 89bool gui_message_loop(void)
90{ 90{
91 SDL_Event event; 91 SDL_Event event;
92 static int x,y,xybutton = 0; 92 static int x,y,xybutton = 0;
@@ -176,8 +176,7 @@ void gui_message_loop(void)
176 case SDL_QUIT: 176 case SDL_QUIT:
177 { 177 {
178 sim_exit_irq_handler(); 178 sim_exit_irq_handler();
179 exit(EXIT_SUCCESS); 179 return false;
180 break;
181 } 180 }
182 default: 181 default:
183 /*printf("Unhandled event\n"); */ 182 /*printf("Unhandled event\n"); */
@@ -185,6 +184,8 @@ void gui_message_loop(void)
185 } 184 }
186 sim_exit_irq_handler(); 185 sim_exit_irq_handler();
187 } 186 }
187
188 return true;
188} 189}
189 190
190static void button_event(int key, bool pressed) 191static void button_event(int key, bool pressed)