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.
This commit is contained in:
Simon Howard 2014-11-27 18:58:58 -05:00
parent 06821e9448
commit 6b217ee03c

View file

@ -290,6 +290,7 @@ void TXT_GUIMainLoop(void)
if (num_windows <= 0)
{
TXT_ExitMainLoop();
continue;
}
TXT_DrawDesktop();