mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Fix new ImageData(width, height) when width != height
This commit is contained in:
parent
134c4b6335
commit
c08ba8ac4c
Notes:
sideshowbarker
2024-07-16 22:11:09 +09:00
Author: https://github.com/awesomekling
Commit: c08ba8ac4c
Pull-request: https://github.com/SerenityOS/serenity/pull/23969
Reviewed-by: https://github.com/kennethmyhra ✅
3 changed files with 7 additions and 1 deletions
|
|
@ -6,6 +6,10 @@
|
|||
println(imageData.data);
|
||||
println(imageData.data.length);
|
||||
|
||||
imageData = new ImageData(1, 2);
|
||||
println(imageData.data);
|
||||
println(imageData.data.length);
|
||||
|
||||
const arr = new Uint8ClampedArray(40_000);
|
||||
// Fill the array with the same RGBA values
|
||||
for (let i = 0; i < arr.length; i += 4) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue