change default res again

This commit is contained in:
Wyvest 2025-12-31 01:46:22 +09:00
parent ac386301bb
commit 18c37f8661
2 changed files with 4 additions and 4 deletions

View file

@ -79,7 +79,7 @@ function RouteComponent() {
updateProfile({ res: { width, height: profile.res?.height ?? 480 } }); updateProfile({ res: { width, height: profile.res?.height ?? 480 } });
}} }}
type="number" type="number"
value={profile.res?.width ?? 640} value={profile.res?.width ?? 854}
/> />
<XIcon className="size-4 self-center" /> <XIcon className="size-4 self-center" />
<TextField <TextField
@ -87,7 +87,7 @@ function RouteComponent() {
min={1} min={1}
onChange={(e) => { onChange={(e) => {
const height = Math.max(1, Number(e.currentTarget.value)); const height = Math.max(1, Number(e.currentTarget.value));
updateProfile({ res: { width: profile.res?.width ?? 640, height } }); updateProfile({ res: { width: profile.res?.width ?? 854, height } });
}} }}
type="number" type="number"
value={profile.res?.height ?? 480} value={profile.res?.height ?? 480}

View file

@ -83,7 +83,7 @@ export function GameSettings() {
setSetting('res', { width, height: gameSettings.res?.height ?? 480 }); setSetting('res', { width, height: gameSettings.res?.height ?? 480 });
}} }}
type="number" type="number"
value={gameSettings.res?.width ?? 640} value={gameSettings.res?.width ?? 854}
/> />
<XIcon className="size-4 self-center" /> <XIcon className="size-4 self-center" />
<TextField <TextField
@ -91,7 +91,7 @@ export function GameSettings() {
min={1} min={1}
onChange={(e) => { onChange={(e) => {
const height = Math.max(1, Number(e.currentTarget.value)); const height = Math.max(1, Number(e.currentTarget.value));
setSetting('res', { width: gameSettings.res?.width ?? 640, height }); setSetting('res', { width: gameSettings.res?.width ?? 854, height });
}} }}
type="number" type="number"
value={gameSettings.res?.height ?? 480} value={gameSettings.res?.height ?? 480}