Fix RotSprite transparency bug (fix #3444)

master
Gaspar Capello 2022-08-05 12:49:21 -03:00 committed by David Capello
parent da636253ee
commit add1128248
1 changed files with 1 additions and 5 deletions

View File

@ -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,