1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:38:10 +00:00

LibWeb: Use proper length values for CanvasRenderingContext2D functions

This commit is contained in:
Emanuele Torre 2020-04-22 18:25:41 +02:00 committed by Andreas Kling
parent a804615b9b
commit d5d3e0b4ed

View file

@ -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);