From a0db7ef2729955d83f002b51034f0dedd39b4a0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ba=C5=82uta?= Date: Sat, 10 Apr 2021 21:58:50 +0000 Subject: [PATCH] Return "Unsupported" from VESA accelerant mode setting Currently, when trying to change settings in Screen preferences on a system which uses VESA driver on UEFI system, the displayed error message is "Invalid argument". This commit simply changes returned error code to B_UNSUPPORTED, so that in the UI we show "Operation not supported" error. Change-Id: I2a654d6f652c7b24ecd23969e04e477456235aa0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3858 Reviewed-by: Adrien Destugues --- src/add-ons/accelerants/vesa/mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/accelerants/vesa/mode.cpp b/src/add-ons/accelerants/vesa/mode.cpp index 91636453b9..9db0514684 100644 --- a/src/add-ons/accelerants/vesa/mode.cpp +++ b/src/add-ons/accelerants/vesa/mode.cpp @@ -198,7 +198,7 @@ vesa_set_display_mode(display_mode* _mode) vesa_mode* modes = gInfo->vesa_modes; if (modes == NULL) - return B_BAD_VALUE; + return B_UNSUPPORTED; // UEFI has no VESA modes for (uint32 i = gInfo->shared_info->vesa_mode_count; i-- > 0;) {