From 79c2033a67441ac435ebcc9151a0055ed47bbe09 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 4 Apr 2016 10:08:04 -0300 Subject: [PATCH] SkiaSurface::applyScale() uses the same color/alpha-type to resize the image --- src/she/skia/skia_surface.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/she/skia/skia_surface.h b/src/she/skia/skia_surface.h index 0da7e81dc..535d8a582 100644 --- a/src/she/skia/skia_surface.h +++ b/src/she/skia/skia_surface.h @@ -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;