diff options
author | Neil <nyamatongwe@gmail.com> | 2014-01-24 13:59:21 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-01-24 13:59:21 +1100 |
commit | 931f456ac8e11250cd64f0330cae42fb2b710f88 (patch) | |
tree | 02cc3dbddef22227741cb434dde5d10941a20488 | |
parent | a7965fc2cb54ac8f8b754b838a468689f46ece93 (diff) | |
download | scintilla-mirror-931f456ac8e11250cd64f0330cae42fb2b710f88.tar.gz |
Make RoundedRectangle with Direct2D have similar shape to GDI with 4 pixel
radius corners.
-rw-r--r-- | win32/PlatWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index ead2d679b..f2a0747c6 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1484,13 +1484,13 @@ void SurfaceD2D::RoundedRectangle(PRectangle rc, ColourDesired fore, ColourDesir if (pRenderTarget) { D2D1_ROUNDED_RECT roundedRectFill = { D2D1::RectF(rc.left+1.0, rc.top+1.0, rc.right-1.0, rc.bottom-1.0), - 8, 8}; + 4, 4}; D2DPenColour(back); pRenderTarget->FillRoundedRectangle(roundedRectFill, pBrush); D2D1_ROUNDED_RECT roundedRect = { D2D1::RectF(rc.left + 0.5, rc.top+0.5, rc.right - 0.5, rc.bottom-0.5), - 8, 8}; + 4, 4}; D2DPenColour(fore); pRenderTarget->DrawRoundedRectangle(roundedRect, pBrush); } |