Fixed a strange hang (likely due to a full buffer or something) on fltkui on slow old single core machines (tested on Pentium M 1.73GHz, PPC G4 1.33GHz)

This commit is contained in:
wyatt8740 2021-05-19 09:58:54 -04:00 committed by rdanbrook
parent 1e8e9ff3c3
commit a1484617d4

View file

@ -509,16 +509,13 @@ int main(int argc, char *argv[]) {
while (true) {
glarea->redraw();
if (nstwin->visible() && !Fl::check()) {
Fl::check();
if (!nstwin->shown()) {
break;
}
else if (!nstwin->shown() && (confwin->shown() || chtwin->shown())) {
break;
}
else if (!Fl::wait()) {
break;
}
SDL_Event event;
while (SDL_PollEvent(&event)) {
switch (event.type) {
@ -531,7 +528,6 @@ int main(int argc, char *argv[]) {
default: break;
}
}
nst_emuloop();
glarea->redraw();
}