mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Use an opaque bitmap in checked DrawMode
This commit is contained in:
parent
1b12f5ccbd
commit
c1342a7029
@ -167,8 +167,10 @@ public:
|
||||
m_paint.setBlendMode(SkBlendMode::kSrcOver);
|
||||
{
|
||||
SkBitmap bitmap;
|
||||
if (!bitmap.tryAllocPixels(SkImageInfo::MakeN32Premul(8, 8, colorSpace())))
|
||||
if (!bitmap.tryAllocPixels(
|
||||
SkImageInfo::MakeN32(8, 8, kOpaque_SkAlphaType, colorSpace()))) {
|
||||
throw base::Exception("Cannot create temporary Skia surface");
|
||||
}
|
||||
|
||||
{
|
||||
SkPMColor A = SkPreMultiplyARGB(gfx::geta(a), gfx::getr(a), gfx::getg(a), gfx::getb(a));
|
||||
|
Loading…
Reference in New Issue
Block a user