aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-03 19:18:23 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-03 19:18:23 +1100
commit4e072cd3e76170dc1106c2da423e71feace3eed0 (patch)
treebd798d841288fdd57077e72675bb2373283bc845 /win32/PlatWin.cxx
parentf8875aa1cf738fe2e2cdfc29ffc346b51ea1ec1c (diff)
downloadscintilla-mirror-4e072cd3e76170dc1106c2da423e71feace3eed0.tar.gz
Bug [#2144]. Fixed drawing of translucent rounded rectangles with Direct2D.
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 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<float>(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);