diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-09-08 17:48:26 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-09-09 11:02:41 +0200 |
commit | 8821bd663ed75fb2c9706b102e1d6f8ccfcf00f5 (patch) | |
tree | 1bd2ca65156571d6c59b5be31be2797439fff724 /vcl/skia | |
parent | 0be6168c5a7b1493a22222dc0967b5e8a0153386 (diff) |
allow xor mode with Skia drawTransformedBitmap() (tdf#136575)
I thought this wouldn't make sense, but the document uses invert and
then VclProcessor2D::RenderBitmapPrimitive2D(), which simply uses
DrawTransformedBitmap() with its transformation data (which is
a no-op I'd guess). Still, don't bother with the possibly complicated
finding out the bounds, just invalidate the whole area.
Change-Id: I309953338f11d1c1c90c684bf0314e60bc44a249
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102267
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'vcl/skia')
-rw-r--r-- | vcl/skia/gdiimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index 17fcbf092335..f6abc2ffb6fb 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -1681,7 +1681,7 @@ bool SkiaSalGraphicsImpl::drawTransformedBitmap(const basegfx::B2DPoint& rNull, canvas->drawImage(rSkiaBitmap.GetSkImage(), 0, 0, &paint); } } - assert(!mXorMode); + addXorRegion(SkRect::MakeWH(GetWidth(), GetHeight())); // can't tell, use whole area postDraw(); return true; } |