summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorEmanuele Torre <torreemanuele6@gmail.com>2020-04-22 18:25:41 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-23 09:43:51 +0200
commitd5d3e0b4ed038f4f36084348cf3b23b953b11a89 (patch)
tree9c65fb4a1e0342ed0010912d3aa951ed673b08cf /Libraries
parenta804615b9beb5c136784e3800e2861f04f39fcb3 (diff)
downloadserenity-d5d3e0b4ed038f4f36084348cf3b23b953b11a89.zip
LibWeb: Use proper length values for CanvasRenderingContext2D functions
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/Bindings/CanvasRenderingContext2DWrapper.cpp6
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);