Kernel/Graphics: Fix a method to be more accurate about its name

This commit is contained in:
Liav A 2021-05-16 21:03:33 +03:00 committed by Linus Groh
parent cfdd231a4d
commit 58d7eb36ad
Notes: sideshowbarker 2024-07-18 17:59:35 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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; }