diff options
| author | mitchell <unknown> | 2019-04-27 17:39:43 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2019-04-27 17:39:43 -0400 |
| commit | 3c7a5c0559aeb74dbb6fa9c76d4a3155ce0f58e8 (patch) | |
| tree | 3c2009dbd0dc24436a02eac1073d03f0d9f00890 /cocoa/ScintillaView.mm | |
| parent | 88ca00a84ea0d5e20e37c1bc3b9eb4213f729ab6 (diff) | |
| download | scintilla-mirror-3c7a5c0559aeb74dbb6fa9c76d4a3155ce0f58e8.tar.gz | |
Fixed bad backport involving std::round and std::lround for older Mac OSX SDKs.
This reverts parts of changeset 7371:886ffb3884fe.
Diffstat (limited to 'cocoa/ScintillaView.mm')
| -rw-r--r-- | cocoa/ScintillaView.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/ScintillaView.mm b/cocoa/ScintillaView.mm index e89b1fdf1..224aac06c 100644 --- a/cocoa/ScintillaView.mm +++ b/cocoa/ScintillaView.mm @@ -813,14 +813,14 @@ static NSCursor *cursorFromEnum(Window::Cursor cursor) // Only snap for positions inside the document - allow outside // for overshoot. long lineHeight = mOwner.backend->WndProc(SCI_TEXTHEIGHT, 0, 0); - rc.origin.y = std::round(static_cast<XYPOSITION>(rc.origin.y) / lineHeight) * lineHeight; + rc.origin.y = roundf(static_cast<XYPOSITION>(rc.origin.y) / lineHeight) * lineHeight; } // Snap to whole points - on retina displays this avoids visual debris // when scrolling horizontally. if ((rc.origin.x > 0) && (NSMaxX(rc) < contentRect.size.width)) { // Only snap for positions inside the document - allow outside // for overshoot. - rc.origin.x = std::round(static_cast<XYPOSITION>(rc.origin.x)); + rc.origin.x = roundf(static_cast<XYPOSITION>(rc.origin.x)); } return rc; } |
