mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Kernel/Graphics: Use DisplayConnector design with generic framebuffers
This commit is contained in:
parent
c27c414ed1
commit
f15b93c9a1
13 changed files with 203 additions and 139 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <Kernel/Graphics/Console/Console.h>
|
||||
#include <Kernel/Graphics/FramebufferDevice.h>
|
||||
#include <Kernel/Graphics/GenericGraphicsAdapter.h>
|
||||
#include <Kernel/Graphics/VGA/VGACompatibleAdapter.h>
|
||||
#include <Kernel/PhysicalAddress.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
@ -21,21 +22,8 @@ class ISAVGAAdapter final : public VGACompatibleAdapter {
|
|||
public:
|
||||
static NonnullRefPtr<ISAVGAAdapter> initialize();
|
||||
|
||||
// Note: We simply don't support old VGA framebuffer modes (like the 320x200 256-colors one)
|
||||
virtual bool framebuffer_devices_initialized() const override { return false; }
|
||||
|
||||
virtual bool try_to_set_resolution(size_t output_port_index, size_t width, size_t height) override;
|
||||
virtual bool set_y_offset(size_t output_port_index, size_t y) override;
|
||||
|
||||
private:
|
||||
ISAVGAAdapter();
|
||||
|
||||
// ^GenericGraphicsAdapter
|
||||
virtual void initialize_framebuffer_devices() override;
|
||||
|
||||
virtual void enable_consoles() override;
|
||||
virtual void disable_consoles() override;
|
||||
|
||||
RefPtr<Graphics::Console> m_framebuffer_console;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue