diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-11 22:56:12 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-11 23:27:43 +0200 |
commit | 7d38057705039f7ab69864349f4754e57dc1ec81 (patch) | |
tree | 68d5d999d95209845f48fdb11dcfe50ae8e8604b /Meta | |
parent | 86994336a72db1f2c49baa40162730baa4599732 (diff) | |
download | serenity-7d38057705039f7ab69864349f4754e57dc1ec81.zip |
Meta: Only use -display sdl for multiple screens when it's available
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Meta/run.sh b/Meta/run.sh index deb0f9e90f..f0d29deeff 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -91,8 +91,8 @@ if (uname -a | grep -iq WSL) || (uname -a | grep -iq microsoft); then # QEMU for windows does not like gl=on, so detect if we are building in wsl, and if so, disable it # Also, when using the GTK backend we run into this problem: https://github.com/SerenityOS/serenity/issues/7657 SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}" -elif [ $SERENITY_SCREENS = 1 ]; then - SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-gtk,gl=off}" +elif [ $SERENITY_SCREENS -gt 1 ] && "${SERENITY_QEMU_BIN}" --display help | grep -iq sdl; then + SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}" elif ("${SERENITY_QEMU_BIN}" --display help | grep -iq sdl) && (ldconfig -p | grep -iq virglrenderer); then SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=on}" elif "${SERENITY_QEMU_BIN}" --display help | grep -iq cocoa; then |