diff options
author | Liav A <liavalb@gmail.com> | 2021-07-09 08:56:46 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-11 21:16:33 +0200 |
commit | a8c35b6a935f0adca7b04f4e493d641f7985dce3 (patch) | |
tree | 092284140d3934c2ac399c6bde9456c0f19f4694 | |
parent | b882e5ff6b977e5f806e9295532b9b4f66eaeea5 (diff) | |
download | serenity-a8c35b6a935f0adca7b04f4e493d641f7985dce3.zip |
Kernel: Fix condition on whether to initialize a display adapter or not
-rw-r--r-- | Kernel/Graphics/GraphicsManagement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Graphics/GraphicsManagement.cpp b/Kernel/Graphics/GraphicsManagement.cpp index 2689098fc8..ebff52e06d 100644 --- a/Kernel/Graphics/GraphicsManagement.cpp +++ b/Kernel/Graphics/GraphicsManagement.cpp @@ -187,7 +187,7 @@ UNMAP_AFTER_INIT bool GraphicsManagement::initialize() // Note: Each graphics controller will try to set its native screen resolution // upon creation. Later on, if we don't want to have framebuffer devices, a // framebuffer console will take the control instead. - if (!is_vga_compatible_pci_device(address) || !is_display_controller_pci_device(address)) + if (!is_vga_compatible_pci_device(address) && !is_display_controller_pci_device(address)) return; determine_and_initialize_graphics_device(address, id); }); |