diff options
author | Simon Howard | 2014-11-27 18:58:58 -0500 |
---|---|---|
committer | Simon Howard | 2014-11-27 18:58:58 -0500 |
commit | 6b217ee03c5155dd751245dc3133167f3bcd7478 (patch) | |
tree | 8e0ab70bdca6dcc0289814310d472401fa77a5f6 | |
parent | 06821e944818e7f064aeb95cbdef5f12dd85a729 (diff) | |
download | chocolate-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.
-rw-r--r-- | textscreen/txt_desktop.c | 1 |
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(); |