mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:58:12 +00:00
Kernel/Graphics: Convert type method => bool vga compatible method
We never used that type method except in initialization in GraphicsManagement, and we used it there to query whether the device is VGA compatible or not.
This commit is contained in:
parent
fb0ed2ae46
commit
a9538b5879
7 changed files with 12 additions and 17 deletions
|
@ -132,11 +132,9 @@ UNMAP_AFTER_INIT void BochsGraphicsAdapter::initialize_framebuffer_devices()
|
|||
VERIFY(!m_framebuffer_device->initialize().is_error());
|
||||
}
|
||||
|
||||
GraphicsDevice::Type BochsGraphicsAdapter::type() const
|
||||
bool BochsGraphicsAdapter::vga_compatible() const
|
||||
{
|
||||
if (m_is_vga_capable)
|
||||
return Type::VGACompatible;
|
||||
return Type::Bochs;
|
||||
return m_is_vga_capable;
|
||||
}
|
||||
|
||||
void BochsGraphicsAdapter::unblank()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue