mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-29 19:44:49 +02:00
Use low density scale on ChromeOS
This commit is contained in:
parent
5cb2dd4b6e
commit
45ee145fe6
2 changed files with 12 additions and 1 deletions
11
linux/AppRun
11
linux/AppRun
|
@ -9,6 +9,17 @@ else
|
|||
LD_LIBRARY_PATH="$LIBS_PATH:$LD_LIBRARY_PATH"
|
||||
fi
|
||||
|
||||
# If this is ChromeOS...
|
||||
if [[ -f /sys/devices/virtual/dmi/id/product_name ]]; then
|
||||
if [[ $(cat /sys/devices/virtual/dmi/id/product_name) == "crosvm" ]]; then
|
||||
# and the program needs to be scaled for a HiDPI display...
|
||||
if DISPLAY=:1 xset q &>/dev/null; then
|
||||
# ... do it
|
||||
export DISPLAY=:1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
export LD_LIBRARY_PATH
|
||||
export SRCDIR=$PWD
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ if get_option('appimage') == true
|
|||
install_data('mkxp-z.png')
|
||||
install_data('mkxp-z.desktop')
|
||||
|
||||
meson.add_install_script('make_appimg.sh', meson.project_name() + '.' + host_machine.cpu(), get_option('appimagekit_path'), swarg)
|
||||
meson.add_install_script('make_appimg.sh', meson.project_name(), get_option('appimagekit_path'), swarg)
|
||||
else
|
||||
if sizeof['long'] == 8
|
||||
archarg = '64'
|
||||
|
|
Loading…
Add table
Reference in a new issue