From 931f456ac8e11250cd64f0330cae42fb2b710f88 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 24 Jan 2014 13:59:21 +1100 Subject: Make RoundedRectangle with Direct2D have similar shape to GDI with 4 pixel radius corners. --- win32/PlatWin.cxx | 4 ++-- 1 file 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); } -- cgit v1.2.3