diff options
author | Neil <nyamatongwe@gmail.com> | 2014-01-18 10:54:18 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-01-18 10:54:18 +1100 |
commit | 038b114be4dada10600fe2442844837bb13c2d9c (patch) | |
tree | 7b10be1f6d8ad0286c8dfa194b912fe702f22e37 | |
parent | e0135dc0026315279c64f7a3aa796751d5f5b9c5 (diff) | |
download | scintilla-mirror-038b114be4dada10600fe2442844837bb13c2d9c.tar.gz |
Draw cicles centred as intended so that folding margin markers look correct.
-rw-r--r-- | gtk/PlatGTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 1479d50ee..9a5e0e2d2 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -822,7 +822,7 @@ void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, const unsi void SurfaceImpl::Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) { PenColour(back); - cairo_arc(context, (rc.left + rc.right) / 2 + 0.5, (rc.top + rc.bottom) / 2 + 0.5, + cairo_arc(context, (rc.left + rc.right) / 2, (rc.top + rc.bottom) / 2, Platform::Minimum(rc.Width(), rc.Height()) / 2, 0, 2*kPi); cairo_fill_preserve(context); PenColour(fore); |