Fix doubled fps not applied on common resolutions

This commit is contained in:
Yukino Song
2025-02-06 05:16:44 +08:00
parent 88be28c3e7
commit 68d1b5ce9d

View File

@@ -282,7 +282,7 @@ namespace proc {
// Don't change display settings when no params are given
if (launch_session->width && launch_session->height && launch_session->fps) {
// Apply display settings
VDISPLAY::changeDisplaySettings(vdisplayName.c_str(), render_width, render_height, launch_session->fps);
VDISPLAY::changeDisplaySettings(vdisplayName.c_str(), render_width, render_height, target_fps);
}
// Set virtual_display to true when everything went fine
this->virtual_display = true;