mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 13:32:27 +00:00
Resize selection correctly on "Sprite Size" even when the Bilinear method is used
This commit is contained in:
parent
59fa7d956b
commit
47a568ee86
@ -130,9 +130,12 @@ protected:
|
||||
gfx::Rect(
|
||||
scale_x(document()->mask()->bounds().x-1),
|
||||
scale_y(document()->mask()->bounds().y-1), MAX(1, w), MAX(1, h)));
|
||||
|
||||
// Always use the nearest-neighbor method to resize the bitmap
|
||||
// mask.
|
||||
algorithm::resize_image(
|
||||
old_bitmap.get(), new_mask->bitmap(),
|
||||
m_resize_method,
|
||||
doc::algorithm::RESIZE_METHOD_NEAREST_NEIGHBOR,
|
||||
sprite()->palette(0), // Ignored
|
||||
sprite()->rgbMap(0), // Ignored
|
||||
-1); // Ignored
|
||||
|
Loading…
Reference in New Issue
Block a user