aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-01-18 10:54:18 +1100
committerNeil <nyamatongwe@gmail.com>2014-01-18 10:54:18 +1100
commitab41008b8c18672be80d03e642fc7b98021c0150 (patch)
treea96164984a8c0f0992ce28048b33651ba8fb375b
parent67c5f029380f3eb0c63886644aa7e0fca8d7b0aa (diff)
downloadscintilla-mirror-ab41008b8c18672be80d03e642fc7b98021c0150.tar.gz
Draw cicles centred as intended so that folding margin markers look correct.
-rw-r--r--gtk/PlatGTK.cxx2
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);