[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Sat Nov 14 11:21:25 UTC 2020
vcl/skia/win/gdiimpl.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 96f5152486a28d77050dc114e293431afddf5142
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Thu Nov 12 15:56:32 2020 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Sat Nov 14 12:20:27 2020 +0100
fix updates of Skia draw region for Windows widgets (tdf#137559)
Change-Id: I787c427dd17334095d5b2d90c6a9670d58ee9a4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105762
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx
index c3cb3a48b066..6b68571d6ab1 100644
--- a/vcl/skia/win/gdiimpl.cxx
+++ b/vcl/skia/win/gdiimpl.cxx
@@ -92,6 +92,8 @@ bool WinSkiaSalGraphicsImpl::TryRenderCachedNativeControl(ControlCacheKey const&
<< this << "): "
<< SkIRect::MakeXYWH(nX, nY, iterator->second->width(),
iterator->second->height()));
+ addUpdateRegion(
+ SkRect::MakeXYWH(nX, nY, iterator->second->width(), iterator->second->height()));
mSurface->getCanvas()->drawImage(iterator->second, nX, nY);
postDraw();
return true;
@@ -110,6 +112,7 @@ bool WinSkiaSalGraphicsImpl::RenderAndCacheNativeControl(CompatibleDC& rWhite, C
SAL_INFO("vcl.skia.trace",
"renderandcachednativecontrol("
<< this << "): " << SkIRect::MakeXYWH(nX, nY, image->width(), image->height()));
+ addUpdateRegion(SkRect::MakeXYWH(nX, nY, image->width(), image->height()));
mSurface->getCanvas()->drawImage(image, nX, nY);
postDraw();
More information about the Libreoffice-commits
mailing list