From a7b57f9b5bb481c9b5b98dda13c0e9c44d26a237 Mon Sep 17 00:00:00 2001 From: mitchell Date: Sun, 5 Jan 2020 22:01:07 -0500 Subject: Added Sci::round() and Sci::lround() for better compatibility with the default branch. Some olders MacOSX SDKs do not have std::round() or std::lround(). --- 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 66a2daac2..207c6ceba 100755 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -469,8 +469,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 = lround(rc.left); - rc.right = lround(rc.right); + rc.left = Sci::round(rc.left); + rc.right = Sci::round(rc.right); cairo_rectangle(context, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); cairo_fill(context); -- cgit v1.2.3