Make VD disable AMD FSR

This commit is contained in:
Maroxy 2022-01-30 17:40:58 +01:00
parent 0c752de182
commit 31b5e7b1f9
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021

View file

@ -48,6 +48,12 @@
Configs.get('winevd').then((settings) => winevdSettings = settings as object);
const WineVDBox = (value: boolean) => {
winevdSettings['enabled'] = value;
if (value)
Configs.set('fsr', false);
}
const handleWineVD = (field: 'height' | 'width', value: string) => {
winevdSettings[field] = parseInt(value);
@ -326,7 +332,7 @@
<Checkbox
lang="settings.general.items.winevd.title"
prop="winevd.enabled"
valueChanged={(value) => winevdSettings['enabled'] = value}
valueChanged={(value) => WineVDBox(value)}
/>
<WineVDSettings visible={winevdSettings['enabled']} valueChanged={handleWineVD} />
@ -343,6 +349,7 @@
lang="settings.enhancements.items.fsr.title"
tooltip="settings.enhancements.items.fsr.tooltip"
prop="fsr"
disabled={winevdSettings['enabled']}
/>
<Checkbox