diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-02-17 21:05:50 +0000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2016-02-18 10:41:20 +0000 |
commit | 4d7c06741967a84142bbe8fa8ae608e5e7df7b0f (patch) | |
tree | 13274a64a4e2f70a8d62bb14e0a7772034326877 /vcl | |
parent | 2fb86ca5316bb5cd982ac9283fae0d9930c692c7 (diff) |
tdf#97922 - Mend nonsensical spin invalidation to improve rendering.
Change-Id: I3a398c47c69cc292a681ebe2414d844c224f3e3e
Reviewed-on: https://gerrit.libreoffice.org/22444
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index e0e84920a33f..62140e435128 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -3455,8 +3455,7 @@ bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat ) if ( bNewIn != mbIn ) { mbIn = bNewIn; - Invalidate(); - InvalidateSpin(mbIn, false); + InvalidateSpin(true, false); } return true; } @@ -3467,7 +3466,7 @@ bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat ) if ( bNewIn != mbIn ) { mbIn = bNewIn; - InvalidateSpin(false, mbIn); + InvalidateSpin(false, true); } return true; } @@ -3582,7 +3581,7 @@ bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel ) mbUpper = false; mbLower = false; mbIn = false; - InvalidateSpin(false, false); + InvalidateSpin(); return true; } @@ -4484,7 +4483,7 @@ void ToolBox::Command( const CommandEvent& rCEvt ) ShowLine( false ); else if ( (mnCurLine+mnVisLines-1 < mnCurLines) && (pData->GetDelta() < 0) ) ShowLine( true ); - InvalidateSpin(false, false); + InvalidateSpin(); return; } } @@ -5193,7 +5192,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt ) mnCurLine = 1; mbFormat = true; ImplFormat(); - InvalidateSpin(false, false); + InvalidateSpin(); ImplChangeHighlight( ImplGetFirstValidItem( mnCurLine ) ); } break; @@ -5206,7 +5205,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt ) mnCurLine = mnCurLines; mbFormat = true; ImplFormat(); - InvalidateSpin(false, false); + InvalidateSpin(); ImplChangeHighlight( ImplGetFirstValidItem( mnCurLine ) ); } break; |