feat: borderless fullscreen

This commit is contained in:
2025-03-03 21:29:45 +00:00
parent 9669fc3905
commit 443467c3ab
3 changed files with 26 additions and 10 deletions

View File

@ -39,6 +39,7 @@ const displayRotationList = [
{ title: 'Portrait', value: 90 },
{ title: 'Portrait (flipped)', value: 270 },
];
const cfgBorderlessFullscreen = _cfg('borderless-fullscreen', false);
const cfgAime = _cfg('aime', false);
const aimeCode = ref('');
@ -112,7 +113,7 @@ const aimeCodeModel = computed({
option-value="value"
></Select>
</OptionRow>
<OptionRow id="resolution" title="Resolution">
<OptionRow id="resolution" title="Game resolution">
<InputNumber
class="shrink"
size="small"
@ -151,13 +152,24 @@ const aimeCodeModel = computed({
:disabled="cfgDisplay === 'default'"
/>
</OptionRow>
<OptionRow
title="Match display resolution with the game"
v-if="capabilities.includes('display')"
>
<Toggle
:disabled="
cfgDisplay === 'default' || cfgDisplayMode != 'borderless'
"
v-model="cfgBorderlessFullscreen"
/>
</OptionRow>
</OptionCategory>
<OptionCategory title="Misc">
<OptionRow title="OpenSSL bug workaround for Intel ≥10th gen">
<Toggle v-model="cfgIntel" />
</OptionRow>
<OptionRow title="Aime emulation">
<Toggle inputId="switch2" v-model="cfgAime" />
<Toggle v-model="cfgAime" />
</OptionRow>
<OptionRow title="Aime code">
<InputText