mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +03:00
Make VD disable AMD FSR
This commit is contained in:
parent
0c752de182
commit
31b5e7b1f9
1 changed files with 8 additions and 1 deletions
|
@ -48,6 +48,12 @@
|
||||||
|
|
||||||
Configs.get('winevd').then((settings) => winevdSettings = settings as object);
|
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) => {
|
const handleWineVD = (field: 'height' | 'width', value: string) => {
|
||||||
winevdSettings[field] = parseInt(value);
|
winevdSettings[field] = parseInt(value);
|
||||||
|
|
||||||
|
@ -326,7 +332,7 @@
|
||||||
<Checkbox
|
<Checkbox
|
||||||
lang="settings.general.items.winevd.title"
|
lang="settings.general.items.winevd.title"
|
||||||
prop="winevd.enabled"
|
prop="winevd.enabled"
|
||||||
valueChanged={(value) => winevdSettings['enabled'] = value}
|
valueChanged={(value) => WineVDBox(value)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<WineVDSettings visible={winevdSettings['enabled']} valueChanged={handleWineVD} />
|
<WineVDSettings visible={winevdSettings['enabled']} valueChanged={handleWineVD} />
|
||||||
|
@ -343,6 +349,7 @@
|
||||||
lang="settings.enhancements.items.fsr.title"
|
lang="settings.enhancements.items.fsr.title"
|
||||||
tooltip="settings.enhancements.items.fsr.tooltip"
|
tooltip="settings.enhancements.items.fsr.tooltip"
|
||||||
prop="fsr"
|
prop="fsr"
|
||||||
|
disabled={winevdSettings['enabled']}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|
Loading…
Reference in a new issue