Kernel/Graphics: Be more consistent about arguments passing

This fixes a bug that was reported on this discord server by
@ElectrodeYT - due to the confusion of passing arguments in different
orders, we messed up and triggered a page fault due to faulty sizes.
This commit is contained in:
Liav A 2021-05-17 00:02:47 +03:00 committed by Linus Groh
commit 02b73cb93d
Notes: sideshowbarker 2024-07-18 17:58:27 +09:00
8 changed files with 18 additions and 18 deletions

View file

@ -19,12 +19,12 @@ class RawFramebufferDevice : public FramebufferDevice {
friend class GraphicsDevice;
public:
static NonnullRefPtr<RawFramebufferDevice> create(const GraphicsDevice&, PhysicalAddress, size_t pitch, size_t width, size_t height);
static NonnullRefPtr<RawFramebufferDevice> create(const GraphicsDevice&, PhysicalAddress, size_t width, size_t height, size_t pitch);
virtual ~RawFramebufferDevice() {};
private:
RawFramebufferDevice(PhysicalAddress, size_t pitch, size_t width, size_t height);
RawFramebufferDevice(PhysicalAddress, size_t width, size_t height, size_t pitch);
virtual const char* class_name() const override { return "RawFramebuffer"; }
};