mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
Kernel/Graphics: Fix a method to be more accurate about its name
This commit is contained in:
parent
cfdd231a4d
commit
58d7eb36ad
Notes:
sideshowbarker
2024-07-18 17:59:35 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/58d7eb36ad2 Pull-request: https://github.com/SerenityOS/serenity/pull/7185
@ -95,7 +95,7 @@ UNMAP_AFTER_INIT void FramebufferDevice::initialize()
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT FramebufferDevice::FramebufferDevice(PhysicalAddress addr, size_t pitch, size_t width, size_t height)
|
||||
: BlockDevice(29, GraphicsManagement::the().current_minor_number())
|
||||
: BlockDevice(29, GraphicsManagement::the().allocate_minor_device_number())
|
||||
, m_framebuffer_address(addr)
|
||||
, m_framebuffer_pitch(pitch)
|
||||
, m_framebuffer_width(width)
|
||||
|
@ -32,7 +32,7 @@ public:
|
||||
static bool is_initialized();
|
||||
bool initialize();
|
||||
|
||||
unsigned current_minor_number() { return m_current_minor_number++; };
|
||||
unsigned allocate_minor_device_number() { return m_current_minor_number++; };
|
||||
GraphicsManagement();
|
||||
|
||||
bool framebuffer_devices_allowed() const { return m_framebuffer_devices_allowed; }
|
||||
|
Loading…
Reference in New Issue
Block a user