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 <pulkomandy@gmail.com>
This commit is contained in:
parent
96aca43744
commit
a0db7ef272
@ -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;) {
|
||||
|
Loading…
Reference in New Issue
Block a user