summaryrefslogtreecommitdiff
path: root/vcl/source/window/cursor.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-05-09 17:34:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-05-09 22:30:22 +0200
commit6dc41e33e087032a52ee11832ff1299632b4f5dd (patch)
treef089b6493ac131dbeb0ad5356eb82fefe8c8bc9b /vcl/source/window/cursor.cxx
parentced3501a93fd44621d7d5e0479df72657a0f085d (diff)
Related: tdf#148433 experiment with SAL_DISABLE_CURSOR_INDICATOR
to turn off the arrow indicators in BiDi cursor Change-Id: I5ed96bccf17432e63564bdfc1c7d2ad4fecdd2a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134090 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window/cursor.cxx')
-rw-r--r--vcl/source/window/cursor.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 6a186da9432c..406491ed1d65 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -43,6 +43,12 @@ struct ImplCursorData
VclPtr<vcl::Window> mpWindow; // assigned window
};
+namespace
+{
+const char* pDisableCursorIndicator(getenv("SAL_DISABLE_CURSOR_INDICATOR"));
+bool bDisableCursorIndicator(nullptr != pDisableCursorIndicator);
+}
+
static tools::Rectangle ImplCursorInvert(vcl::RenderContext* pRenderContext, ImplCursorData const * pData)
{
tools::Rectangle aPaintRect;
@@ -65,7 +71,7 @@ static tools::Rectangle ImplCursorInvert(vcl::RenderContext* pRenderContext, Imp
aPoly[2].AdjustX(1 );
// apply direction flag after slant to use the correct shape
- if ( pData->mnDirection != CursorDirection::NONE)
+ if (!bDisableCursorIndicator && pData->mnDirection != CursorDirection::NONE)
{
Point pAry[7];
// Related system settings for "delta" could be: