diff --git a/src/doc/algorithm/rotsprite.cpp b/src/doc/algorithm/rotsprite.cpp index 436327d26..c8be8bf87 100644 --- a/src/doc/algorithm/rotsprite.cpp +++ b/src/doc/algorithm/rotsprite.cpp @@ -1,5 +1,5 @@ // Aseprite Document Library -// Copyright (c) 2020 Igara Studio S.A. +// Copyright (c) 2020-2022 Igara Studio S.A. // Copyright (c) 2001-2018 David Capello // // This file is released under the terms of the MIT license. @@ -215,10 +215,6 @@ void rotsprite_image(Image* bmp, const Image* spr, const Image* mask, } clear_image(bmp_copy.get(), maskColor); - scale_image(bmp_copy.get(), bmp, - 0, 0, bmp_copy->width(), bmp_copy->height(), - xmin, ymin, rot_width, rot_height); - parallelogram( bmp_copy.get(), spr_copy.get(), msk_copy.get(), (x1-xmin)*scale, (y1-ymin)*scale, (x2-xmin)*scale, (y2-ymin)*scale,