diff --git a/src/Autoload/DrawingAlgos.gd b/src/Autoload/DrawingAlgos.gd index 3c47a78ec..a14c14054 100644 --- a/src/Autoload/DrawingAlgos.gd +++ b/src/Autoload/DrawingAlgos.gd @@ -258,8 +258,6 @@ func draw_brush(sprite : Image, pos : Vector2, color : Color, current_mouse_butt func fill_gaps(sprite : Image, end_pos : Vector2, start_pos : Vector2, color : Color, current_mouse_button : String, pen_pressure : float, current_action := "None") -> void: var previous_mouse_pos_floored = start_pos.floor() var mouse_pos_floored = end_pos.floor() - mouse_pos_floored.x = clamp(mouse_pos_floored.x, Global.canvas.location.x - 1, Global.canvas.location.x + Global.canvas.size.x) - mouse_pos_floored.y = clamp(mouse_pos_floored.y, Global.canvas.location.y - 1, Global.canvas.location.y + Global.canvas.size.y) var dx := int(abs(mouse_pos_floored.x - previous_mouse_pos_floored.x)) var dy := int(-abs(mouse_pos_floored.y - previous_mouse_pos_floored.y)) var err := dx + dy diff --git a/src/Main.gd b/src/Main.gd index caaef5107..a4c4905c9 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -238,8 +238,8 @@ func _notification(what : int) -> void: show_quit_dialog() -func _on_files_dropped(files : PoolStringArray, _screen : int) -> void: - handle_loading_files(files) +func _on_files_dropped(_files : PoolStringArray, _screen : int) -> void: + handle_loading_files(_files) func on_new_project_file_menu_option_pressed(id : int) -> void: