aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-01-18 10:48:20 +1100
committerNeil <nyamatongwe@gmail.com>2014-01-18 10:48:20 +1100
commite0135dc0026315279c64f7a3aa796751d5f5b9c5 (patch)
tree1af7de6df38aa70a6d13afb8f2eac4c1082375a1 /win32/PlatWin.cxx
parenta285d5a30827d68ec10d6333907cdf905ee8507c (diff)
downloadscintilla-mirror-e0135dc0026315279c64f7a3aa796751d5f5b9c5.tar.gz
With Direct2D draw circles with a 1 pixel larger radius to better match
other platforms and ensure for folding markers that the '+' or '-' do not touch the circle. Change order of drawing so that circles are drawn after connecting lines so overwrite any tails.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index f67bcf7fb..548d620d3 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1563,7 +1563,7 @@ void SurfaceD2D::DrawRGBAImage(PRectangle rc, int width, int height, const unsig
void SurfaceD2D::Ellipse(PRectangle rc, ColourDesired fore, ColourDesired back) {
if (pRenderTarget) {
- FLOAT radius = rc.Width() / 2.0f - 1.0f;
+ FLOAT radius = rc.Width() / 2.0f;
D2D1_ELLIPSE ellipse = {
D2D1::Point2F((rc.left + rc.right) / 2.0f, (rc.top + rc.bottom) / 2.0f),
radius,radius};