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 /gtk/PlatGTK.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 'gtk/PlatGTK.cxx')
-rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 26e1b5f58..d9485c048 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -453,8 +453,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 = std::round(rc.left); + rc.right = std::round(rc.right); cairo_rectangle(context, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); cairo_fill(context); |