Fix for bad res name

This commit is contained in:
alphanu1 2020-09-11 18:04:40 +01:00 committed by GitHub
parent 7b2588c721
commit 897ea6aff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,7 +194,7 @@ static bool x11_display_server_set_resolution(void *data,
}
snprintf(old_mode, sizeof(old_mode), "%s", new_mode);
/* variable for new mode */
snprintf(new_mode, sizeof(new_mode), "%s_%dx%d_%0.2f", crt_name, width, height, hz);
snprintf(new_mode, sizeof(new_mode), "%s", crt_name);
/* need to run loops for DVI0 - DVI-2 and VGA0 - VGA-2 outputs to
* add and delete modes */