diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-11-20 12:47:23 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-11-27 09:55:18 +0100 |
commit | 6a0f8d88053bd7d33bc7d2032fb682f5579d10d0 (patch) | |
tree | d21ec27771bd68971285f44b21b55f845fe20e97 /vcl/skia/salbmp.cxx | |
parent | c41d44286570c0b6da5e2a5901f5e2401037378e (diff) |
copy SkImage properly
Change-Id: I61f082d8a8d8eead6c49bbf3da997462e7d9738e
Diffstat (limited to 'vcl/skia/salbmp.cxx')
-rw-r--r-- | vcl/skia/salbmp.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/skia/salbmp.cxx b/vcl/skia/salbmp.cxx index 1e5c554b49f2..9910693d6336 100644 --- a/vcl/skia/salbmp.cxx +++ b/vcl/skia/salbmp.cxx @@ -49,7 +49,9 @@ SkiaSalBitmap::SkiaSalBitmap(const SkImage& image) { SkCanvas canvas(mBitmap); // TODO makeNonTextureImage() ? - canvas.drawImage(&image, 0, 0); + SkPaint paint; + paint.setBlendMode(SkBlendMode::kSrc); // set as is, including alpha + canvas.drawImage(&image, 0, 0, &paint); } } |