Use low density scale on ChromeOS

This commit is contained in:
Struma 2020-06-30 11:12:53 -04:00 committed by zzoro
parent 5cb2dd4b6e
commit 45ee145fe6
2 changed files with 12 additions and 1 deletions

View file

@ -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

View file

@ -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'