From 3c7a5c0559aeb74dbb6fa9c76d4a3155ce0f58e8 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sat, 27 Apr 2019 17:39:43 -0400 Subject: Fixed bad backport involving std::round and std::lround for older Mac OSX SDKs. This reverts parts of changeset 7371:886ffb3884fe. --- gtk/PlatGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') 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); -- cgit v1.2.3