1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Kernel: Make FrameBufferDevice::try_to_set_resolution() return KResult

This commit is contained in:
Andreas Kling 2021-10-22 01:21:34 +02:00
parent 21bfa02dd2
commit 4ffee78146
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)