vcl/skia/gdiimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ef6def16e8d83bd425f3613c19989a409db7eb66 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Wed Sep 1 15:58:43 2021 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Fri Sep 10 15:32:56 2021 +0200 fix Skia/Raster screen flushing on Mac There's no window context in that case, so check the surface, as other places do. A mistake from 234ed4bcd5c4b5b41467890b82c6ef. Change-Id: I7f9d97340ed30444cb151c1141f8cc3045bd6dea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121892 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/vcl/skia/gdiimpl.cxx b/vcl/skia/gdiimpl.cxx index 433663eadd55..c580471a9608 100644 --- a/vcl/skia/gdiimpl.cxx +++ b/vcl/skia/gdiimpl.cxx @@ -395,7 +395,7 @@ void SkiaSalGraphicsImpl::performFlush() { SkiaZone zone; flushDrawing(); - if (mWindowContext) + if (mSurface) { if (mDirtyRect.intersect(SkIRect::MakeWH(GetWidth(), GetHeight()))) flushSurfaceToWindowContext();