diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-16 10:37:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-16 12:07:32 +0100 |
commit | 494f565506013015d9ce4a3010eb3b211557d70f (patch) | |
tree | c2c01aa6cabb798ba09dd4a2ecec36b15b0676b3 /sw/source/core/view | |
parent | e568d233a3f9cbc926bfa12dac3fbc6d29a4b6c7 (diff) |
don't bother dithering for 256bit displays
which surely are a minority by now
Also drop the GetColorCount() method on OutputDevice and clean up the
remaining call sites to use GetBitCount()
Change-Id: I4e2c6f2523796f7df7f54eb005f1539e34d9ea40
Reviewed-on: https://gerrit.libreoffice.org/51389
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/core/view')
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx index 533e20d26a78..7c536e86117f 100644 --- a/sw/source/core/view/viewsh.cxx +++ b/sw/source/core/view/viewsh.cxx @@ -1223,19 +1223,19 @@ bool SwViewShell::SmoothScroll( long lXDiff, long lYDiff, const tools::Rectangle #if !defined(MACOSX) && !defined(ANDROID) && !defined(IOS) // #i98766# - disable smooth scrolling for Mac - const sal_uLong nColCnt = mpOut->GetColorCount(); + const sal_uLong nBitCnt = mpOut->GetBitCount(); long lMult = 1, lMax = LONG_MAX; - if ( nColCnt == 65536 ) + if ( nBitCnt == 16 ) { lMax = 7000; lMult = 2; } - if ( nColCnt == 16777216 ) + if ( nBitCnt == 24 ) { lMax = 5000; lMult = 6; } - else if ( nColCnt == 1 ) + else if ( nBitCnt == 1 ) { lMax = 3000; lMult = 12; |