mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 07:04:43 -04:00
Fixed bugs detected by overloaded
One bug was that rotxel was used at the end, no matter what algorithm was chosen. The other was that rotxel was taking into account a image of width x width dimensions.
This commit is contained in:
parent
e24e9d65a5
commit
a9a647a7ee
2 changed files with 6 additions and 2 deletions
|
@ -686,7 +686,7 @@ func rotxel(sprite : Image, angle : float):
|
|||
aux.lock()
|
||||
sprite.lock()
|
||||
for x in range(sprite.get_width()):
|
||||
for y in range(sprite.get_width()):
|
||||
for y in range(sprite.get_height()):
|
||||
var dx = 3*(x - center.x)
|
||||
var dy = 3*(y - center.y)
|
||||
var found_pixel : bool = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue