diff options
author | nyamatongwe <unknown> | 2004-03-29 12:43:42 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-03-29 12:43:42 +0000 |
commit | b989664ead75d08c09c44b0437f3637624482648 (patch) | |
tree | 8933c762f7672c3cad39df08ec4da39ff8add3c4 /src/ViewStyle.cxx | |
parent | 0f755cbbab64741e1e8ef4e8d66d29d652b96a4c (diff) | |
download | scintilla-mirror-b989664ead75d08c09c44b0437f3637624482648.tar.gz |
Patch from Robin Dunn to pass an extra flag down to
font rendering to allow a platform-specific tweak.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 8df779079..c52f1e472 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -112,6 +112,7 @@ ViewStyle::ViewStyle(const ViewStyle &source) { viewIndentationGuides = source.viewIndentationGuides; viewEOL = source.viewEOL; showMarkedLines = source.showMarkedLines; + extraFontFlag = source.extraFontFlag; } ViewStyle::~ViewStyle() { @@ -193,6 +194,7 @@ void ViewStyle::Init() { viewIndentationGuides = false; viewEOL = false; showMarkedLines = true; + extraFontFlag = false; } void ViewStyle::RefreshColourPalette(Palette &pal, bool want) { @@ -228,13 +230,13 @@ void ViewStyle::RefreshColourPalette(Palette &pal, bool want) { void ViewStyle::Refresh(Surface &surface) { selbar.desired = Platform::Chrome(); selbarlight.desired = Platform::ChromeHighlight(); - styles[STYLE_DEFAULT].Realise(surface, zoomLevel); + styles[STYLE_DEFAULT].Realise(surface, zoomLevel, NULL, extraFontFlag); maxAscent = styles[STYLE_DEFAULT].ascent; maxDescent = styles[STYLE_DEFAULT].descent; someStylesProtected = false; for (unsigned int i=0;i<(sizeof(styles)/sizeof(styles[0]));i++) { if (i != STYLE_DEFAULT) { - styles[i].Realise(surface, zoomLevel, &styles[STYLE_DEFAULT]); + styles[i].Realise(surface, zoomLevel, &styles[STYLE_DEFAULT], extraFontFlag); if (maxAscent < styles[i].ascent) maxAscent = styles[i].ascent; if (maxDescent < styles[i].descent) |