mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Kernel/Graphics: Indicate initialization failed if no device was found
This commit is contained in:
parent
95a11d5737
commit
c6ffee7f18
Notes:
sideshowbarker
2024-07-18 17:37:34 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/c6ffee7f180 Pull-request: https://github.com/SerenityOS/serenity/pull/7340 Issue: https://github.com/SerenityOS/serenity/issues/7334 Reviewed-by: https://github.com/bgianfo Reviewed-by: https://github.com/boricj
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
|||
#include <Kernel/Graphics/VGACompatibleAdapter.h>
|
||||
#include <Kernel/IO.h>
|
||||
#include <Kernel/Multiboot.h>
|
||||
#include <Kernel/Panic.h>
|
||||
#include <Kernel/VM/AnonymousVMObject.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
@ -140,6 +141,10 @@ UNMAP_AFTER_INIT bool GraphicsManagement::initialize()
|
|||
}
|
||||
display_adapter->initialize_framebuffer_devices();
|
||||
});
|
||||
if (m_graphics_devices.is_empty()) {
|
||||
dbgln("No graphics adapter was initialized.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue