Anti-aliasing for the rounded volume meter
This commit is contained in:
parent
b07699efdd
commit
8b38a7633b
1 changed files with 2 additions and 2 deletions
|
|
@ -1034,11 +1034,11 @@ void SLevelMeter::draw(CDrawContext* dc)
|
|||
fillColor.alpha = static_cast<uint8_t>(A * 255.0);
|
||||
}
|
||||
|
||||
dc->setDrawMode(kAliasing);
|
||||
|
||||
CCoord radius = radius_;
|
||||
bool isRounded = radius > 0.0;
|
||||
|
||||
dc->setDrawMode(isRounded ? kAntiAliasing : kAliasing);
|
||||
|
||||
SharedPointer<CGraphicsPath> largeRoundRect;
|
||||
SharedPointer<CGraphicsPath> fillRoundRect;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue