Opening .pxo files directly with Pixelorama is now also supported

Also added "-> void" to the methods that did not already have it
This commit is contained in:
OverloadedOrama 2020-02-09 18:06:03 +02:00
parent 45a31faa7b
commit 9e7a3059f2
5 changed files with 25 additions and 20 deletions

View file

@ -672,7 +672,7 @@ func scale3X(sprite : Image, tol : float = 50) -> Image:
sprite.unlock()
return scaled
func rotxel(sprite : Image, angle : float):
func rotxel(sprite : Image, angle : float) -> void:
# If angle is simple, then nn rotation is the best
@ -783,7 +783,7 @@ func rotxel(sprite : Image, angle : float):
sprite.unlock()
aux.unlock()
func nn_rotate(sprite : Image, angle : float):
func nn_rotate(sprite : Image, angle : float) -> void:
var aux : Image = Image.new()
aux.copy_from(sprite)
sprite.lock()