diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-07-03 14:46:37 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-07-03 14:48:19 +0300 |
commit | 05806f4603476dd150af7770543fea749cc6d10c (patch) | |
tree | 076b92230fdf87958ae40e563498fc11bf0cccd0 /vcl | |
parent | 7976422efedb973c17d7af3f6fa69325c632a0d2 (diff) |
Don't belive the 'draw direct' parameter when double-buffering
Avoids leftover artefacts of the blinking text insertion cursor. Did not seem
to have any ill effects.
Change-Id: I8a1e7413034eacb3014a4ca902cf5e72bda492a4
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/cursor.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index b665be75352d..e1119ae6f7ef 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -167,6 +167,9 @@ void vcl::Cursor::ImplDoShow( bool bDrawDirect, bool bRestore ) if ( pWindow ) { + if ( pWindow->SupportsDoubleBuffering() ) + bDrawDirect = false; + if ( !mpData ) { mpData = new ImplCursorData; |