diff options
Diffstat (limited to 'src/osd/sdl/debugqt.c')
-rw-r--r-- | src/osd/sdl/debugqt.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/osd/sdl/debugqt.c b/src/osd/sdl/debugqt.c index 72a210ffef0..7998b810c85 100644 --- a/src/osd/sdl/debugqt.c +++ b/src/osd/sdl/debugqt.c @@ -38,8 +38,8 @@ MainWindow* mainQtWindow = NULL; void sdl_osd_interface::init_debugger() { - // QT is a magical thing - new QApplication(qtArgc, qtArgv); + // QT is a magical thing + new QApplication(qtArgc, qtArgv); } @@ -49,36 +49,36 @@ void sdl_osd_interface::init_debugger() void sdl_osd_interface::wait_for_debugger(device_t &device, bool firststop) { - if (oneShot) - { - mainQtWindow = new MainWindow(&device, &machine()); - mainQtWindow->show(); - oneShot = false; - } - - // Make sure the main window displays the proper cpu - mainQtWindow->setProcessor(&device); - - // Run our own QT event loop - while (debug_cpu_is_stopped(machine())) - { - qApp->processEvents(QEventLoop::AllEvents, 1); - - // Refresh everyone if requested - if (mainQtWindow->wantsRefresh()) - { - QWidgetList allWidgets = qApp->allWidgets(); - for (int i = 0; i < allWidgets.length(); i++) - allWidgets[i]->update(); - mainQtWindow->clearRefreshFlag(); - } - - // Exit if the machine has been instructed to do so - if (machine().exit_pending()) - { - break; - } - } + if (oneShot) + { + mainQtWindow = new MainWindow(&device, &machine()); + mainQtWindow->show(); + oneShot = false; + } + + // Make sure the main window displays the proper cpu + mainQtWindow->setProcessor(&device); + + // Run our own QT event loop + while (debug_cpu_is_stopped(machine())) + { + qApp->processEvents(QEventLoop::AllEvents, 1); + + // Refresh everyone if requested + if (mainQtWindow->wantsRefresh()) + { + QWidgetList allWidgets = qApp->allWidgets(); + for (int i = 0; i < allWidgets.length(); i++) + allWidgets[i]->update(); + mainQtWindow->clearRefreshFlag(); + } + + // Exit if the machine has been instructed to do so + if (machine().exit_pending()) + { + break; + } + } } @@ -88,7 +88,7 @@ void sdl_osd_interface::wait_for_debugger(device_t &device, bool firststop) void debugwin_update_during_game(running_machine &machine) { - qApp->processEvents(QEventLoop::AllEvents, 1); + qApp->processEvents(QEventLoop::AllEvents, 1); } |