startblit() and endblit(): watch for mutex contention. the mutex is unfair on linux, so sleep if there's contention
This commit is contained in:
@@ -905,7 +905,9 @@ video_toggle_option(QAction* action, int *val)
|
||||
|
||||
void MainWindow::on_actionInverted_VGA_monitor_triggered() {
|
||||
video_toggle_option(ui->actionInverted_VGA_monitor, &invert_display);
|
||||
startblit();
|
||||
video_copy = (video_grayscale || invert_display) ? video_transform_copy : memcpy;
|
||||
endblit();
|
||||
}
|
||||
|
||||
static void update_scaled_checkboxes(Ui::MainWindow* ui, QAction* selected) {
|
||||
|
||||
Reference in New Issue
Block a user