| 1457 | } |
| 1458 | |
| 1459 | void MainWindow::switchToGameListView() |
| 1460 | { |
| 1461 | if (isShowingGameList()) |
| 1462 | { |
| 1463 | m_game_list_widget->setFocus(); |
| 1464 | return; |
| 1465 | } |
| 1466 | |
| 1467 | if (m_display_created) |
| 1468 | { |
| 1469 | m_was_paused_on_surface_loss = s_vm_paused; |
| 1470 | if (!s_vm_paused) |
| 1471 | g_emu_thread->setVMPaused(true); |
| 1472 | |
| 1473 | // switch to surfaceless. we have to wait until the display widget is gone before we swap over. |
| 1474 | g_emu_thread->setSurfaceless(true); |
| 1475 | while (m_display_surface) |
| 1476 | QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1); |
| 1477 | } |
| 1478 | } |
| 1479 | |
| 1480 | void MainWindow::switchToEmulationView() |
| 1481 | { |
nothing calls this directly
no test coverage detected