diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-14 14:39:55 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-14 14:39:55 +1000 |
commit | 3fe056899ac8ad4882f59e196aaa56cd31c2e547 (patch) | |
tree | dcbd61fefbf0dad1472713d890b7c9d6fc8d4814 /src/ViewStyle.cxx | |
parent | c4aa7826f3d2178e39e5bff2f6886d7d3d3f46d7 (diff) | |
download | scintilla-mirror-3fe056899ac8ad4882f59e196aaa56cd31c2e547.tar.gz |
Modernize Platform.h (4) - update Surface to use string_view for text arguments.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 1a95450ce..2700fb016 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -80,7 +80,7 @@ void FontRealised::Realise(Surface &surface, int zoomLevel, int technology, cons descent = static_cast<unsigned int>(surface.Descent(font)); capitalHeight = surface.Ascent(font) - surface.InternalLeading(font); aveCharWidth = surface.AverageCharWidth(font); - spaceWidth = surface.WidthText(font, " ", 1); + spaceWidth = surface.WidthText(font, " "); } ViewStyle::ViewStyle() : markers(MARKER_MAX + 1), indicators(INDIC_MAX + 1) { @@ -367,7 +367,7 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) { controlCharWidth = 0.0; if (controlCharSymbol >= 32) { const char cc[2] = { static_cast<char>(controlCharSymbol), '\0' }; - controlCharWidth = surface.WidthText(styles[STYLE_CONTROLCHAR].font, cc, 1); + controlCharWidth = surface.WidthText(styles[STYLE_CONTROLCHAR].font, cc); } CalculateMarginWidthAndMask(); |