aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authormitchell <unknown>2019-04-27 17:39:43 -0400
committermitchell <unknown>2019-04-27 17:39:43 -0400
commit3c7a5c0559aeb74dbb6fa9c76d4a3155ce0f58e8 (patch)
tree3c2009dbd0dc24436a02eac1073d03f0d9f00890 /gtk/PlatGTK.cxx
parent88ca00a84ea0d5e20e37c1bc3b9eb4213f729ab6 (diff)
downloadscintilla-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 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 3e18423da..8dfbb2227 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -459,8 +459,8 @@ void SurfaceImpl::RectangleDraw(PRectangle rc, ColourDesired fore, ColourDesired
void SurfaceImpl::FillRectangle(PRectangle rc, ColourDesired back) {
PenColour(back);
if (context && (rc.left < maxCoordinate)) { // Protect against out of range
- rc.left = std::round(rc.left);
- rc.right = std::round(rc.right);
+ rc.left = lround(rc.left);
+ rc.right = lround(rc.right);
cairo_rectangle(context, rc.left, rc.top,
rc.right - rc.left, rc.bottom - rc.top);
cairo_fill(context);