aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-04-01 01:54:21 +0000
committernyamatongwe <devnull@localhost>2009-04-01 01:54:21 +0000
commit803e7ff02753ff859e44b78ba1368aa4e1c07af9 (patch)
tree7ee5153591f173fb56c030d21dbc4601753d974a /src/ViewStyle.cxx
parentfd0b09668969d458642e1b7d9dbf447cfae6bc92 (diff)
downloadscintilla-mirror-803e7ff02753ff859e44b78ba1368aa4e1c07af9.tar.gz
Added commands to add extra ascent and descent space.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 811f79a6d..686862a2d 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -139,6 +139,8 @@ ViewStyle::ViewStyle(const ViewStyle &source) {
viewEOL = source.viewEOL;
showMarkedLines = source.showMarkedLines;
extraFontFlag = source.extraFontFlag;
+ extraAscent = source.extraAscent;
+ extraDescent = source.extraDescent;
}
ViewStyle::~ViewStyle() {
@@ -233,6 +235,8 @@ void ViewStyle::Init(size_t stylesSize_) {
viewEOL = false;
showMarkedLines = true;
extraFontFlag = false;
+ extraAscent = 0;
+ extraDescent = 0;
}
void ViewStyle::RefreshColourPalette(Palette &pal, bool want) {
@@ -284,6 +288,8 @@ void ViewStyle::Refresh(Surface &surface) {
someStylesProtected = true;
}
}
+ maxAscent += extraAscent;
+ maxDescent += extraDescent;
lineHeight = maxAscent + maxDescent;
aveCharWidth = styles[STYLE_DEFAULT].aveCharWidth;