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 | e5848239dc9c3736683be0f85c385c51fc337131 (patch) | |
tree | 89361233082321b55eb39142dac5e0c2ab856870 | |
parent | c452cb6db857fb5db1d43e7125c9a91cccbde8b3 (diff) | |
download | scintilla-mirror-e5848239dc9c3736683be0f85c385c51fc337131.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); } |