mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +00:00
SkiaSurface::applyScale() uses the same color/alpha-type to resize the image
This commit is contained in:
parent
939e86f5e4
commit
79c2033a67
@ -170,7 +170,9 @@ public:
|
||||
|
||||
SkBitmap result;
|
||||
if (!result.tryAllocPixels(
|
||||
SkImageInfo::MakeN32Premul(width()*scaleFactor, height()*scaleFactor)))
|
||||
SkImageInfo::Make(width()*scaleFactor, height()*scaleFactor,
|
||||
m_bitmap.info().colorType(),
|
||||
m_bitmap.info().alphaType())))
|
||||
throw base::Exception("Cannot create temporary Skia surface to change scale");
|
||||
|
||||
SkPaint paint;
|
||||
|
Loading…
x
Reference in New Issue
Block a user