mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Vars refactor: Replace xres/yres with X_RES/Y_RES
This commit is contained in:
parent
7682463e27
commit
fe718a8423
1 changed files with 12 additions and 12 deletions
24
quickemu
24
quickemu
|
@ -208,22 +208,22 @@ function vm_boot() {
|
||||||
fi
|
fi
|
||||||
echo " - RAM: ${RAM_VM}"
|
echo " - RAM: ${RAM_VM}"
|
||||||
|
|
||||||
local xres=1152
|
local X_RES=1152
|
||||||
local yres=648
|
local Y_RES=648
|
||||||
if [ "${XDG_SESSION_TYPE}" == "x11" ]; then
|
if [ "${XDG_SESSION_TYPE}" == "x11" ]; then
|
||||||
local LOWEST_WIDTH=$(xrandr --listmonitors | grep -v Monitors | cut -d' ' -f4 | cut -d'/' -f1 | sort | head -n1)
|
local LOWEST_WIDTH=$(xrandr --listmonitors | grep -v Monitors | cut -d' ' -f4 | cut -d'/' -f1 | sort | head -n1)
|
||||||
if [ ${LOWEST_WIDTH} -ge 3840 ]; then
|
if [ ${LOWEST_WIDTH} -ge 3840 ]; then
|
||||||
xres=3200
|
X_RES=3200
|
||||||
yres=1800
|
Y_RES=1800
|
||||||
elif [ ${LOWEST_WIDTH} -ge 2560 ]; then
|
elif [ ${LOWEST_WIDTH} -ge 2560 ]; then
|
||||||
xres=2048
|
X_RES=2048
|
||||||
yres=1152
|
Y_RES=1152
|
||||||
elif [ ${LOWEST_WIDTH} -ge 1920 ]; then
|
elif [ ${LOWEST_WIDTH} -ge 1920 ]; then
|
||||||
xres=1664
|
X_RES=1664
|
||||||
yres=936
|
Y_RES=936
|
||||||
elif [ ${LOWEST_WIDTH} -ge 1280 ]; then
|
elif [ ${LOWEST_WIDTH} -ge 1280 ]; then
|
||||||
xres=1152
|
X_RES=1152
|
||||||
yres=648
|
Y_RES=648
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ function vm_boot() {
|
||||||
if [ "${UI}" == "gtk" ]; then
|
if [ "${UI}" == "gtk" ]; then
|
||||||
GL="off"
|
GL="off"
|
||||||
else
|
else
|
||||||
echo " - Display: ${xres}x${yres}"
|
echo " - Display: ${X_RES}x${Y_RES}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${VIDEO_DRV}" == "qxl" ]; then
|
if [ "${VIDEO_DRV}" == "qxl" ]; then
|
||||||
|
@ -240,7 +240,7 @@ function vm_boot() {
|
||||||
VIRGL="off"
|
VIRGL="off"
|
||||||
else
|
else
|
||||||
echo " - Video: VirtIO-VGA"
|
echo " - Video: VirtIO-VGA"
|
||||||
local VIDEO_DEV="-device ${VIDEO_DRV},virgl=${VIRGL},xres=${xres},yres=${yres}"
|
local VIDEO_DEV="-device ${VIDEO_DRV},virgl=${VIRGL},X_RES=${X_RES},Y_RES=${Y_RES}"
|
||||||
fi
|
fi
|
||||||
echo " - GL: ${GL}"
|
echo " - GL: ${GL}"
|
||||||
echo " - Virgil3D: ${VIRGL}"
|
echo " - Virgil3D: ${VIRGL}"
|
||||||
|
|
Loading…
Reference in a new issue