Skip to content

Commit

Permalink
Actually fixed the hang.
Browse files Browse the repository at this point in the history
  • Loading branch information
OBattler committed Jul 31, 2022
1 parent b69565d commit 93404cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions src/qt/qt_mainwindow.cpp
Expand Up @@ -1596,11 +1596,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
void MainWindow::blitToWidget(int x, int y, int w, int h, int monitor_index)
{
if (monitor_index >= 1) {
#ifdef STRICTER_CHECK
if (renderers[monitor_index] && renderers[monitor_index]->isVisible()) renderers[monitor_index]->blit(x, y, w, h);
#else
if (renderers[monitor_index]) renderers[monitor_index]->blit(x, y, w, h);
#endif
if (!blitDummied && renderers[monitor_index] && renderers[monitor_index]->isVisible()) renderers[monitor_index]->blit(x, y, w, h);
else video_blit_complete_monitor(monitor_index);
}
else ui->stackedWidget->blit(x, y, w, h);
Expand Down
3 changes: 0 additions & 3 deletions src/qt/qt_ui.cpp
Expand Up @@ -73,9 +73,6 @@ wchar_t* ui_window_title(wchar_t* str)

extern "C" void qt_blit(int x, int y, int w, int h, int monitor_index)
{
if (blitDummied)
return;

main_window->blitToWidget(x, y, w, h, monitor_index);
}

Expand Down

0 comments on commit 93404cf

Please sign in to comment.