diff options
| author | mitchell <unknown> | 2020-01-05 22:01:07 -0500 |
|---|---|---|
| committer | mitchell <unknown> | 2020-01-05 22:01:07 -0500 |
| commit | a7b57f9b5bb481c9b5b98dda13c0e9c44d26a237 (patch) | |
| tree | 2cdcc4c9d826c3a42c47746eab16b6079e35dfbd /gtk/PlatGTK.cxx | |
| parent | c7e5af4bc7c06eaa6bb000b3f0a4569e31c9f9a9 (diff) | |
| download | scintilla-mirror-a7b57f9b5bb481c9b5b98dda13c0e9c44d26a237.tar.gz | |
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().
Diffstat (limited to 'gtk/PlatGTK.cxx')
| -rwxr-xr-x | gtk/PlatGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
