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:
parent
06821e9448
commit
6b217ee03c
1 changed files with 1 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ void TXT_GUIMainLoop(void)
|
|||
if (num_windows <= 0)
|
||||
{
|
||||
TXT_ExitMainLoop();
|
||||
continue;
|
||||
}
|
||||
|
||||
TXT_DrawDesktop();
|
||||
|
|
|
|||
Loading…
Reference in a new issue