summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-09-19 22:47:37 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2016-09-22 20:13:06 +0200
commitc04ce0acbb68f9770e29c2e25fb74c2eb7aa2e11 (patch)
treeb07b73348c3481a35a0ea9f77012afba318148a4 /vcl/source/window
parent78b944747e374c9245173072cf78e67118344d10 (diff)
KDE4 no more progress bar flickering
This will always redraw the progress bar over the last one. It stops the flickering at least in KDE4 from re-painting the background, but obvously will break any transparent or alaiasing effect, if it was used. There is actually a mbProgressNeedsErase in the global settings, so actually use it when setting a new progress value. Change-Id: Ic62784da4f6d08bf0e03a9e04848a5cc687ee236
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/status.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 0035714a6027..70778b09e7c2 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -1352,7 +1352,8 @@ void StatusBar::SetProgressValue( sal_uInt16 nNewPercent )
&& IsReallyVisible()
&& (!mnPercent || (mnPercent != nNewPercent)) )
{
- Invalidate(maPrgsFrameRect);
+ bool bNeedErase = ImplGetSVData()->maNWFData.mbProgressNeedsErase;
+ Invalidate(maPrgsFrameRect, bNeedErase ? InvalidateFlags::NONE : InvalidateFlags::NoErase);
Flush();
}
mnPercent = nNewPercent;