summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
authorSimon Howard2014-11-27 18:58:58 -0500
committerSimon Howard2014-11-27 18:58:58 -0500
commit6b217ee03c5155dd751245dc3133167f3bcd7478 (patch)
tree8e0ab70bdca6dcc0289814310d472401fa77a5f6 /textscreen
parent06821e944818e7f064aeb95cbdef5f12dd85a729 (diff)
downloadchocolate-doom-6b217ee03c5155dd751245dc3133167f3bcd7478.tar.gz
chocolate-doom-6b217ee03c5155dd751245dc3133167f3bcd7478.tar.bz2
chocolate-doom-6b217ee03c5155dd751245dc3133167f3bcd7478.zip
textscreen: Exit immediately when all windows close.
The main loop should exit when the last window closes, but the loop code was waiting for one event to be received before this took effect. This fixes #474. Thanks to Alexandre-Xavier for the report.
Diffstat (limited to 'textscreen')
-rw-r--r--textscreen/txt_desktop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/textscreen/txt_desktop.c b/textscreen/txt_desktop.c
index fe0ae8ee..4c9cf5c1 100644
--- a/textscreen/txt_desktop.c
+++ b/textscreen/txt_desktop.c
@@ -290,6 +290,7 @@ void TXT_GUIMainLoop(void)
if (num_windows <= 0)
{
TXT_ExitMainLoop();
+ continue;
}
TXT_DrawDesktop();