diff options
| author | mitchell <unknown> | 2019-03-31 23:20:01 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2019-03-31 23:20:01 -0400 |
| commit | 2c20e36f4ec739fd0887aceda589fce2c1757342 (patch) | |
| tree | 7a00c34eab91ecec5e28a45df72f22d3c99d8701 /src/CallTip.cxx | |
| parent | de07b9abd6711d657c170de23871ddb5503a1011 (diff) | |
| download | scintilla-mirror-2c20e36f4ec739fd0887aceda589fce2c1757342.tar.gz | |
Backport: Use generic versions of ceil, floor, round, lround, trunc from <cmath>.
Backport of changeset 7329:2662ef098d93, but without std::round and std::lround,
since older Mac OSX SDKs may not have them.
Diffstat (limited to 'src/CallTip.cxx')
| -rw-r--r-- | src/CallTip.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index 2dcf91ea6..18c4549bb 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -176,7 +176,7 @@ int CallTip::PaintContents(Surface *surfaceWindow, bool draw) { PRectangle rcClient(1.0f, 1.0f, rcClientSize.right - 1, rcClientSize.bottom - 1); // To make a nice small call tip window, it is only sized to fit most normal characters without accents - const int ascent = static_cast<int>(lround(surfaceWindow->Ascent(font) - surfaceWindow->InternalLeading(font))); + const int ascent = static_cast<int>(round(surfaceWindow->Ascent(font) - surfaceWindow->InternalLeading(font))); // For each line... // Draw the definition in three parts: before highlight, highlighted, after highlight |
