Kernel: Make FrameBufferDevice::try_to_set_resolution() return KResult

This commit is contained in:
Andreas Kling 2021-10-22 01:21:34 +02:00
commit 4ffee78146
Notes: sideshowbarker 2024-07-18 02:04:04 +09:00
3 changed files with 6 additions and 10 deletions

View file

@ -45,7 +45,7 @@ Console::Console(RefPtr<FrameBufferDevice> const& framebuffer_device)
void Console::set_resolution(size_t width, size_t height, size_t)
{
auto did_set_resolution = m_framebuffer_device->try_to_set_resolution(width, height);
VERIFY(did_set_resolution);
VERIFY(!did_set_resolution.is_error());
}
void Console::flush(size_t x, size_t y, size_t width, size_t height)