mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-21 12:49:40 +08:00
UI: Add and migrate to GPU scaling options
This commit is contained in:
@@ -1595,6 +1595,21 @@ bool OBSBasic::InitBasicConfigDefaults()
|
||||
MigrateFormat("AdvOut");
|
||||
MigrateFormat("SimpleOutput");
|
||||
|
||||
/* ----------------------------------------------------- */
|
||||
/* Migrate output scale setting to GPU scaling options. */
|
||||
|
||||
if (config_get_bool(basicConfig, "AdvOut", "Rescale") &&
|
||||
!config_has_user_value(basicConfig, "AdvOut", "RescaleFilter")) {
|
||||
config_set_int(basicConfig, "AdvOut", "RescaleFilter",
|
||||
OBS_SCALE_BILINEAR);
|
||||
}
|
||||
|
||||
if (config_get_bool(basicConfig, "AdvOut", "RecRescale") &&
|
||||
!config_has_user_value(basicConfig, "AdvOut", "RecRescaleFilter")) {
|
||||
config_set_int(basicConfig, "AdvOut", "RecRescaleFilter",
|
||||
OBS_SCALE_BILINEAR);
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------- */
|
||||
|
||||
if (changed)
|
||||
|
||||
Reference in New Issue
Block a user