Add window-mode flag

disable FSR Option if borderless enabled
This commit is contained in:
Marie 2022-02-27 20:43:52 +00:00
parent 238b6fa132
commit 5f2d532cbb
2 changed files with 2 additions and 2 deletions

View file

@ -342,7 +342,7 @@
lang: 'settings.enhancements.wine.items.fsr.tooltip'
}}
prop="wine.fsr"
disabled={winevdSettings['enabled']}
disabled={winevdSettings['enabled'] || Configs.get('borderless_window')}
/>
<Checkbox

View file

@ -158,7 +158,7 @@ export default (launcher: Launcher): Promise<void> => {
const virtual_desktop = await Configs.get('wine.virtual_desktop') as object;
let command = `"${path.addSlashes(wineExeutable)}" ${virtual_desktop['enabled'] ? `explorer /desktop=animegame,${virtual_desktop['width']}x${virtual_desktop['height']}` : ''} ${await Configs.get('fps_unlocker') ? 'unlockfps.bat' : 'launcher.bat'} ${await Configs.get('borderless_window') ? '-screen-fullscreen 0 -popupwindow' : ''}`;
let command = `"${path.addSlashes(wineExeutable)}" ${virtual_desktop['enabled'] ? `explorer /desktop=animegame,${virtual_desktop['width']}x${virtual_desktop['height']}` : ''} ${await Configs.get('fps_unlocker') ? 'unlockfps.bat' : 'launcher.bat'} ${await Configs.get('borderless_window') ? '-screen-fullscreen 0 -popupwindow' : ''} ${await Configs.get('wine.fsr') ? '-window-mode exclusive' : ''}`;
/**
* Gamemode integration