mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Fix RotSprite transparency bug (fix #3444)
This commit is contained in:
parent
da636253ee
commit
add1128248
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user