diff options
author | Neil <nyamatongwe@gmail.com> | 2025-03-29 18:13:45 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-03-29 18:13:45 +1100 |
commit | 9ccbd1eb1fb1c53fc7be721f98b0acb207e56723 (patch) | |
tree | deb7b969d7e0ec42b5456dc92a14b01d5084598d /win32/SurfaceD2D.cxx | |
parent | 908be66566d803445c613a2dbe9fbc901d4be7e3 (diff) | |
download | scintilla-mirror-9ccbd1eb1fb1c53fc7be721f98b0acb207e56723.tar.gz |
Simplify some boolean expressions and place brackets around subexpressions.
Diffstat (limited to 'win32/SurfaceD2D.cxx')
-rw-r--r-- | win32/SurfaceD2D.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/SurfaceD2D.cxx b/win32/SurfaceD2D.cxx index 47a529fe3..39b02fa7e 100644 --- a/win32/SurfaceD2D.cxx +++ b/win32/SurfaceD2D.cxx @@ -786,13 +786,13 @@ void SurfaceD2D::Ellipse(PRectangle rc, FillStroke fillStroke) { return; const D2D1_POINT_2F centre = DPointFromPoint(rc.Centre()); - const FLOAT radiusFill = static_cast<FLOAT>(rc.Width() / 2.0f - fillStroke.stroke.width); + const FLOAT radiusFill = static_cast<FLOAT>((rc.Width() / 2.0f) - fillStroke.stroke.width); const D2D1_ELLIPSE ellipseFill = { centre, radiusFill, radiusFill }; D2DPenColourAlpha(fillStroke.fill.colour); pRenderTarget->FillEllipse(ellipseFill, pBrush.Get()); - const FLOAT radiusOutline = static_cast<FLOAT>(rc.Width() / 2.0f - fillStroke.stroke.width / 2.0f); + const FLOAT radiusOutline = static_cast<FLOAT>((rc.Width() / 2.0f) - (fillStroke.stroke.width / 2.0f)); const D2D1_ELLIPSE ellipseOutline = { centre, radiusOutline, radiusOutline }; D2DPenColourAlpha(fillStroke.stroke.colour); |