Function setMode [src]
Set the video device into the specified mode and clears the visible portions of the output display to black.
Prototype
pub fn setMode(self: *GraphicsOutput, mode_id: u32) SetModeError!void
Parameters
self: *GraphicsOutput
mode_id: u32
Possible Errors
Source
pub fn setMode(self: *GraphicsOutput, mode_id: u32) SetModeError!void {
switch (self._set_mode(self, mode_id)) {
.success => {},
.device_error => return Error.DeviceError,
.unsupported => return Error.Unsupported,
else => |status| return uefi.unexpectedStatus(status),
}
}