diff options
author | Neil <nyamatongwe@gmail.com> | 2014-07-18 12:01:14 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-07-18 12:01:14 +1000 |
commit | 7124ef7839ecba143e3a6fa7b30cee13bf6458b5 (patch) | |
tree | 7ba3d4171cc100068d76acaf853c21c4e810ebb0 /src/ViewStyle.cxx | |
parent | c6959a0ab03e5942d815a77f6566ea8611173c06 (diff) | |
download | scintilla-mirror-7124ef7839ecba143e3a6fa7b30cee13bf6458b5.tar.gz |
Allow extreme ascenders and descenders to overlap into adjacent lines with
multiple phase drawing option.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index e67c02d6d..e3c1d65d7 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -204,6 +204,7 @@ void ViewStyle::Init(size_t stylesSize_) { technology = SC_TECHNOLOGY_DEFAULT; lineHeight = 1; + lineOverlap = 0; maxAscent = 1; maxDescent = 1; aveCharWidth = 8; @@ -329,6 +330,11 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { maxAscent += extraAscent; maxDescent += extraDescent; lineHeight = maxAscent + maxDescent; + lineOverlap = lineHeight / 10; + if (lineOverlap < 2) + lineOverlap = 2; + if (lineOverlap > lineHeight) + lineOverlap = lineHeight; someStylesProtected = false; someStylesForceCase = false; |