mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibGfx/JPEGXL: Compute the position inside the channel correctly
Turns out I only decoded square images until now, which make this code work. A bit ashamed to have written that bug.
This commit is contained in:
parent
bba14f6014
commit
a0ea87ffc6
Notes:
sideshowbarker
2024-07-17 05:05:51 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/a0ea87ffc6 Pull-request: https://github.com/SerenityOS/serenity/pull/20445
1 changed files with 2 additions and 2 deletions
|
@ -1508,12 +1508,12 @@ public:
|
|||
|
||||
i32 get(u32 x, u32 y) const
|
||||
{
|
||||
return m_pixels[x * m_width + y];
|
||||
return m_pixels[y * m_width + x];
|
||||
}
|
||||
|
||||
void set(u32 x, u32 y, i32 value)
|
||||
{
|
||||
m_pixels[x * m_width + y] = value;
|
||||
m_pixels[y * m_width + x] = value;
|
||||
}
|
||||
|
||||
u32 width() const
|
||||
|
|
Loading…
Reference in a new issue