diff render_sdl.c @ 409:c1bddeadc566

Process events in vgm player so that quitting works
author Mike Pavone <pavone@retrodev.com>
date Mon, 17 Jun 2013 19:34:47 -0700
parents c26e48a93fa3
children 36fbbced25c2
line wrap: on
line diff
--- a/render_sdl.c	Mon Jun 17 00:54:14 2013 -0700
+++ b/render_sdl.c	Mon Jun 17 19:34:47 2013 -0700
@@ -366,6 +366,14 @@
 	return ret;
 }
 
+void process_events()
+{
+	SDL_Event event;
+	while(SDL_PollEvent(&event)) {
+		handle_event(&event);
+	}
+}
+
 void render_wait_psg(psg_context * context)
 {
 	SDL_LockMutex(audio_mutex);