setMode
Set the video device into the specified mode and clears the visible portions of the output display to black.
Function parameters
Parameters
- self:*GraphicsOutput
- mode_id:u32
Type definitions in this namespace
Types
Source
Implementation
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),
}
}