mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
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:
parent
ca9101e5f0
commit
02b73cb93d
Notes:
sideshowbarker
2024-07-18 17:58:27 +09:00
Author: https://github.com/supercomputer7
Commit: 02b73cb93d
Pull-request: https://github.com/SerenityOS/serenity/pull/7198
8 changed files with 18 additions and 18 deletions
|
@ -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"; }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue