mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-09-12 22:52:17 -06:00
Merge branch 'features/ava-dpi' into 'master'
Enabling screen scaling in Linux DE with AVALONIA_GLOBAL_SCALE_FACTOR See merge request [ryubing/ryujinx!131](https://git.ryujinx.app/ryubing/ryujinx/-/merge_requests/131)
This commit is contained in:
@ -16,6 +16,18 @@ fi
|
|||||||
|
|
||||||
COMMAND="env LANG=C.UTF-8 DOTNET_EnableAlternateStackCheck=1"
|
COMMAND="env LANG=C.UTF-8 DOTNET_EnableAlternateStackCheck=1"
|
||||||
|
|
||||||
|
XFT_DPI=$(xrdb -get Xft.dpi 2> /dev/null)
|
||||||
|
|
||||||
|
if [ -z "$XFT_DPI" ]; then
|
||||||
|
XFT_DPI=96
|
||||||
|
fi
|
||||||
|
|
||||||
|
AVALONIA_GLOBAL_SCALE_FACTOR=$(echo "scale=2; $XFT_DPI/96" | bc)
|
||||||
|
|
||||||
|
if [ -n "$AVALONIA_GLOBAL_SCALE_FACTOR" ]; then
|
||||||
|
COMMAND="$COMMAND AVALONIA_GLOBAL_SCALE_FACTOR=$AVALONIA_GLOBAL_SCALE_FACTOR"
|
||||||
|
fi
|
||||||
|
|
||||||
if command -v gamemoderun > /dev/null 2>&1; then
|
if command -v gamemoderun > /dev/null 2>&1; then
|
||||||
COMMAND="$COMMAND gamemoderun"
|
COMMAND="$COMMAND gamemoderun"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user