1
0
Fork 0

Rebble: fix battery size

master
Rarder44 2022-06-13 14:18:26 +02:00
parent e68d04da5b
commit dac6e6ec91
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ function drawBattery(x,y,wi,hi) {
g.clearRect(x+2,y+2+2,x+wi-4-2,y+2+hi-2); // centre
g.setColor(g.theme.fg);
g.fillRect(x+wi-3,y+2+(((hi - 1)/2)-1),x+wi-2,y+2+(((hi - 1)/2)-1)+4); // contact
g.fillRect(x+3, y+5, x +4 + E.getBattery()*(wi-12)/100, y+hi-1); // the level
g.fillRect(x+3, y+5, x +3 + E.getBattery()*(wi-10)/100, y+hi-1); // the level
if( Bangle.isCharging() )
{