From 7e014497051c25edd54cb6d84b16e628c22f55e8 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.com⁩> Date: Tue, 17 Oct 2023 01:40:07 +0200 Subject: [PATCH] Slider: remove unnecessary condition check --- modules/Slider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Slider.js b/modules/Slider.js index e3ad61684..074b2d85f 100644 --- a/modules/Slider.js +++ b/modules/Slider.js @@ -185,8 +185,8 @@ try { // For making it possiblie to run the test app in the following catch stat setColor(o.c.colorBG).fillRect(o.c.hollowRect). // ... and here it's made hollow. setColor(0==level?o.c.colorBG:o.c.colorFG).fillRect(o.f.updateBar((!o.c.rounded?0:(2*o.c._rounded))+level*o.c.STEP_SIZE)); // Here the bar is drawn. if (o.c.rounded && level===0) { // Hollow circle indicates level zero when slider is rounded. - g.setColor(o.c.colorFG).fillCircle(o.c._xStart+(!o.c.horizontal?o.c._rounded:o.c._rounded), o.c._yStart+o.c._height-o.c._rounded, o.c._rounded). - setColor(o.c.colorBG).fillCircle(o.c._xStart+(!o.c.horizontal?o.c._rounded:o.c._rounded), o.c._yStart+o.c._height-o.c._rounded, o.c._rounded-o.c.outerBorderSize); + g.setColor(o.c.colorFG).fillCircle(o.c._xStart+o.c._rounded, o.c._yStart+o.c._height-o.c._rounded, o.c._rounded). + setColor(o.c.colorBG).fillCircle(o.c._xStart+o.c._rounded, o.c._yStart+o.c._height-o.c._rounded, o.c._rounded-o.c.outerBorderSize); } }; }