From d0a694cbb1bd019d386d19fe5acad6f3d2948de6 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 6 Nov 2010 20:05:37 -0300 Subject: [PATCH] More priority for GUI thread, it is necessary for better GUI response in presence of background threads (this change was removed in commit 21957f21642a98422612bc1b268b20c7377f0eff). --- src/allegro/src/win/wwnd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/allegro/src/win/wwnd.c b/src/allegro/src/win/wwnd.c index c2d2cf4a5..b97e182cc 100644 --- a/src/allegro/src/win/wwnd.c +++ b/src/allegro/src/win/wwnd.c @@ -495,6 +495,7 @@ int init_directx_window(void) switch (result) { case WAIT_OBJECT_0: /* window was created successfully */ wnd_thread = events[1]; + SetThreadPriority(wnd_thread, THREAD_PRIORITY_ABOVE_NORMAL); break; default: /* thread failed to create window */ return -1;