diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-12 13:55:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-11 17:56:01 +0200 |
commit | be53f32655973c7a18824d5145eed992be788d2f (patch) | |
tree | 5ace1cd4952594b86485ecce44ea07550d78810c /vcl/source/window/paint.cxx | |
parent | 88629b55041b9e7ff5c94afeb2aae725a5898687 (diff) |
rename vcl::Window::Update to PaintImmediately
To make the code easier to read.
Change-Id: Iebc648150391939fba5d1cd815c72dbcf02ceec6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90378
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/paint.cxx')
-rw-r--r-- | vcl/source/window/paint.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 33cddf352ce4..b62abdaf56df 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -848,7 +848,7 @@ void Window::ImplInvalidate( const vcl::Region* pRegion, InvalidateFlags nFlags } if ( nFlags & InvalidateFlags::Update ) - pOpaqueWindow->Update(); // start painting at the opaque parent + pOpaqueWindow->PaintImmediately(); // start painting at the opaque parent } void Window::ImplMoveInvalidateRegion( const tools::Rectangle& rRect, @@ -1281,11 +1281,11 @@ bool Window::HasPaintEvent() const return false; } -void Window::Update() +void Window::PaintImmediately() { if ( mpWindowImpl->mpBorderWindow ) { - mpWindowImpl->mpBorderWindow->Update(); + mpWindowImpl->mpBorderWindow->PaintImmediately(); return; } @@ -1337,7 +1337,7 @@ void Window::Update() vcl::Window* pUpdateOverlapWindow = ImplGetFirstOverlapWindow()->mpWindowImpl->mpFirstOverlap; while ( pUpdateOverlapWindow ) { - pUpdateOverlapWindow->Update(); + pUpdateOverlapWindow->PaintImmediately(); pUpdateOverlapWindow = pUpdateOverlapWindow->mpWindowImpl->mpNext; } @@ -1824,7 +1824,7 @@ void Window::ImplScroll( const tools::Rectangle& rRect, } if ( nFlags & ScrollFlags::Update ) - Update(); + PaintImmediately(); if ( mpWindowImpl->mpCursor ) mpWindowImpl->mpCursor->ImplResume(); |