summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-20 16:43:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-20 21:01:56 +0200
commit67af9b07bcbb98686b80610ccdbae0f7aaa65ca2 (patch)
tree8f1826275ff283daf91f8cf7f3706d3efb923a65 /vcl
parent2c624a5d1a2608bf4c577d3c36c4ccae77a7f2af (diff)
rename DrawFocusRect to InvertFocusRect
Change-Id: If7a951a3f5f68cebc7e7fedb810db74c99f94765 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114346 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/salvtables.cxx2
-rw-r--r--vcl/source/window/window2.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index d99ac4548817..bdb45fe9ad45 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -6036,7 +6036,7 @@ IMPL_LINK(SalInstanceDrawingArea, PaintHdl, target_and_area, aPayload, void)
m_aDrawHdl.Call(aPayload);
tools::Rectangle aFocusRect(m_aGetFocusRectHdl.Call(*this));
if (!aFocusRect.IsEmpty())
- DrawFocusRect(aPayload.first, aFocusRect);
+ InvertFocusRect(aPayload.first, aFocusRect);
}
IMPL_LINK(SalInstanceDrawingArea, ResizeHdl, const Size&, rSize, void)
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 63cfca1b4291..86dd53bcfb9f 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -1993,7 +1993,7 @@ const std::vector<VclPtr<FixedText> >& Window::list_mnemonic_labels() const
} /* namespace vcl */
-void DrawFocusRect(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
+void InvertFocusRect(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
{
const int nBorder = 1;
rRenderContext.Invert(tools::Rectangle(Point(rRect.Left(), rRect.Top()), Size(rRect.GetWidth(), nBorder)), InvertFlags::N50);