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:
parent
0cc357f6dc
commit
29994afe7f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user