mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2024-06-22 06:02:26 -04:00
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:
parent
1e8e9ff3c3
commit
a1484617d4
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue