From 58d7eb36ad2ce48226f310ee871b96c73efe8fc5 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sun, 16 May 2021 21:03:33 +0300 Subject: [PATCH] Kernel/Graphics: Fix a method to be more accurate about its name --- Kernel/Graphics/FramebufferDevice.cpp | 2 +- Kernel/Graphics/GraphicsManagement.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Graphics/FramebufferDevice.cpp b/Kernel/Graphics/FramebufferDevice.cpp index fd1bd27277..b8eb5ac67d 100644 --- a/Kernel/Graphics/FramebufferDevice.cpp +++ b/Kernel/Graphics/FramebufferDevice.cpp @@ -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) diff --git a/Kernel/Graphics/GraphicsManagement.h b/Kernel/Graphics/GraphicsManagement.h index da830259a2..144f480db9 100644 --- a/Kernel/Graphics/GraphicsManagement.h +++ b/Kernel/Graphics/GraphicsManagement.h @@ -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; }