mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 12:32:52 +00:00
SkiaSurface::create() creates opaque images (alpha isn't needed)
This commit is contained in:
parent
fdbb70b1a4
commit
939e86f5e4
@ -58,7 +58,7 @@ public:
|
||||
ASSERT(!m_surface);
|
||||
|
||||
if (!m_bitmap.tryAllocPixels(
|
||||
SkImageInfo::MakeN32Premul(width, height)))
|
||||
SkImageInfo::MakeN32(width, height, kOpaque_SkAlphaType)))
|
||||
throw base::Exception("Cannot create Skia surface");
|
||||
|
||||
m_bitmap.eraseColor(SK_ColorTRANSPARENT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user