mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +00:00
Kernel/Graphics: Fix a method to be more accurate about its name
This commit is contained in:
parent
cfdd231a4d
commit
58d7eb36ad
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
Add a link
Reference in a new issue