fix(darwin): update display_param_check() to correctly verify displays
This commit is contained in:
parent
6528520d0f
commit
63409682f2
21
quickemu
21
quickemu
|
@ -1558,16 +1558,17 @@ function display_param_check() {
|
||||||
display="sdl"
|
display="sdl"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${display}" != "gtk" ] && [ "${display}" != "none" ] && [ "${display}" != "sdl" ] && [ "${display}" != "spice" ] && [ "${display}" != "spice-app" ]; then
|
if [ ${DARWIN} -eq 1 ]; then
|
||||||
echo "ERROR! Requested output '${display}' is not recognised."
|
if [ "${display}" != "cocoa" ]; then
|
||||||
exit 1
|
echo "WARNING! Requested output '${display}' but only 'cocoa' is avalible on macOS."
|
||||||
elif [ "${display}" == "cocoa" ] && [ ${DARWIN} -eq 0 ]; then
|
echo " Setting display to 'cocoa'."
|
||||||
echo "ERROR! Requested output '${display}' is only supported on macOS."
|
display="cocoa"
|
||||||
exit 1
|
fi
|
||||||
elif [ "${display}" != "cocoa" ] && [ ${DARWIN} -eq 1 ]; then
|
else
|
||||||
echo "WARNING! Requested output '${display}' but only 'cocoa' is avalible on macOS."
|
if [ "${display}" != "gtk" ] && [ "${display}" != "none" ] && [ "${display}" != "sdl" ] && [ "${display}" != "spice" ] && [ "${display}" != "spice-app" ]; then
|
||||||
echo " Setting display to 'cocoa'."
|
echo "ERROR! Requested output '${display}' is not recognised."
|
||||||
display="cocoa"
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the default 3D acceleration.
|
# Set the default 3D acceleration.
|
||||||
|
|
Loading…
Reference in New Issue