[aseprite] 139/196: SkiaSurface::applyScale() uses the same color/alpha-type to resize the image
Tobias Hansen
thansen at moszumanska.debian.org
Wed Apr 20 18:50:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 79c2033a67441ac435ebcc9151a0055ed47bbe09
Author: David Capello <davidcapello at gmail.com>
Date: Mon Apr 4 10:08:04 2016 -0300
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 0da7e81..535d8a5 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list