mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-25 18:52:22 -05: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
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
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_address(addr)
|
||||||
, m_framebuffer_pitch(pitch)
|
, m_framebuffer_pitch(pitch)
|
||||||
, m_framebuffer_width(width)
|
, m_framebuffer_width(width)
|
||||||
|
|
|
@ -32,7 +32,7 @@ public:
|
||||||
static bool is_initialized();
|
static bool is_initialized();
|
||||||
bool initialize();
|
bool initialize();
|
||||||
|
|
||||||
unsigned current_minor_number() { return m_current_minor_number++; };
|
unsigned allocate_minor_device_number() { return m_current_minor_number++; };
|
||||||
GraphicsManagement();
|
GraphicsManagement();
|
||||||
|
|
||||||
bool framebuffer_devices_allowed() const { return m_framebuffer_devices_allowed; }
|
bool framebuffer_devices_allowed() const { return m_framebuffer_devices_allowed; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue