From 8b38a7633b977ba434e850f1faf7e328c03c3a89 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Tue, 27 Apr 2021 14:23:14 +0200 Subject: [PATCH] Anti-aliasing for the rounded volume meter --- plugins/editor/src/editor/GUIComponents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/editor/src/editor/GUIComponents.cpp b/plugins/editor/src/editor/GUIComponents.cpp index 5af20031..88e48609 100644 --- a/plugins/editor/src/editor/GUIComponents.cpp +++ b/plugins/editor/src/editor/GUIComponents.cpp @@ -1034,11 +1034,11 @@ void SLevelMeter::draw(CDrawContext* dc) fillColor.alpha = static_cast(A * 255.0); } - dc->setDrawMode(kAliasing); - CCoord radius = radius_; bool isRounded = radius > 0.0; + dc->setDrawMode(isRounded ? kAntiAliasing : kAliasing); + SharedPointer largeRoundRect; SharedPointer fillRoundRect;