From dbebd4c1ce2aec767d9a2539cf185dcae2e147b8 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 15 Apr 2013 23:42:46 +0100 Subject: [PATCH] Schedule an immediate fetch poll if fetch is active --- amiga/gui.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/amiga/gui.c b/amiga/gui.c index b6de46df9..572a8d171 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2459,8 +2459,14 @@ printf("sig recvd %ld (%ld %ld %ld %ld %ld %ld)\n", signal, winsignal , appsig , } } +static void ami_gui_fetch_callback(void *p) +{ + hlcache_poll(); +} + void gui_poll(bool active) { + if(active) schedule(0, ami_gui_fetch_callback, NULL); ami_get_msg(); }