Set draw mode in the slider painter

This commit is contained in:
Jean Pierre Cimalando 2020-09-02 10:22:49 +02:00
parent d008fb3bc8
commit c27b3cb192

View file

@ -28,6 +28,8 @@ void SimpleSlider::draw(CDrawContext* dc)
CRect bounds = getViewSize();
CRect handle = calculateHandleRect(getValueNormalized());
dc->setDrawMode(kAntiAliasing);
dc->setFrameColor(_frame);
dc->drawRect(bounds, kDrawStroked);