diff options
author | nyamatongwe <unknown> | 2011-11-04 11:04:30 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-11-04 11:04:30 +1100 |
commit | 428fa50f7c195b33ff5f42b1bdd608f6c437b7f5 (patch) | |
tree | 4efd7cdce5440c04e664b66fda32e210b8ceaa64 | |
parent | 1f8315bf2b92c617030f66dc2a8bf4f68165dd66 (diff) | |
download | scintilla-mirror-428fa50f7c195b33ff5f42b1bdd608f6c437b7f5.tar.gz |
Round to nearest pixels horizontally to avoid background artifacts on OS X.
From Mitchell Foral.
-rw-r--r-- | gtk/PlatGTK.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index db28cae8b..e56847483 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -665,6 +665,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); cairo_rectangle(context, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); cairo_fill(context); |