mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-29 21:18:17 +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);
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue