From 4e072cd3e76170dc1106c2da423e71feace3eed0 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 3 Dec 2019 19:18:23 +1100 Subject: Bug [#2144]. Fixed drawing of translucent rounded rectangles with Direct2D. --- doc/ScintillaHistory.html | 4 ++++ win32/PlatWin.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 05e03640f..08483affd 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -609,6 +609,10 @@ Bug #2137.
  • + Fixed drawing of translucent rounded rectangles on Win32 with Direct2D. + Bug #2144. +
  • +
  • Setting rectangular selection made faster. Bug #2130.
  • diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index d449e78a9..6f0c6553b 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1361,7 +1361,7 @@ void SurfaceD2D::AlphaRectangle(PRectangle rc, int cornerSize, ColourDesired fil const float cornerSizeF = static_cast(cornerSize); D2D1_ROUNDED_RECT roundedRectFill = { D2D1::RectF(std::round(rc.left) + 1.0f, rc.top + 1.0f, std::round(rc.right) - 1.0f, rc.bottom - 1.0f), - cornerSizeF, cornerSizeF}; + cornerSizeF - 1.0f, cornerSizeF - 1.0f }; D2DPenColour(fill, alphaFill); pRenderTarget->FillRoundedRectangle(roundedRectFill, pBrush); -- cgit v1.2.3