0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

UI: Retain existing last output resolution

This commit is contained in:
derrod 2024-06-01 18:42:34 +02:00 committed by Lain
parent 0cc357f6dc
commit 29994afe7f

View File

@ -1306,6 +1306,15 @@ retryScene:
vcamConfig.source = obs_data_get_string(obj, "source");
}
if (obs_data_has_user_value(data, "resolution")) {
OBSDataAutoRelease res = obs_data_get_obj(data, "resolution");
if (obs_data_has_user_value(res, "x") &&
obs_data_has_user_value(res, "y")) {
lastOutputResolution = {obs_data_get_int(res, "x"),
obs_data_get_int(res, "y")};
}
}
/* ---------------------- */
if (api)