diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2020-04-22 18:25:41 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-23 09:43:51 +0200 |
commit | d5d3e0b4ed038f4f36084348cf3b23b953b11a89 (patch) | |
tree | 9c65fb4a1e0342ed0010912d3aa951ed673b08cf /Libraries | |
parent | a804615b9beb5c136784e3800e2861f04f39fcb3 (diff) | |
download | serenity-d5d3e0b4ed038f4f36084348cf3b23b953b11a89.zip |
LibWeb: Use proper length values for CanvasRenderingContext2D functions
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp b/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp index fab041d662..7bd496a139 100644 --- a/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp +++ b/Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp @@ -61,10 +61,10 @@ CanvasRenderingContext2DWrapper::CanvasRenderingContext2DWrapper(CanvasRendering put_native_function("beginPath", begin_path, 0); put_native_function("closePath", close_path, 0); put_native_function("stroke", stroke, 0); - put_native_function("moveTo", move_to, 0); - put_native_function("lineTo", line_to, 0); + put_native_function("moveTo", move_to, 2); + put_native_function("lineTo", line_to, 2); - put_native_function("createImageData", create_image_data, 2); + put_native_function("createImageData", create_image_data, 1); put_native_function("putImageData", put_image_data, 3); put_native_property("lineWidth", line_width_getter, line_width_setter); |