score: fix/reorder draw function

master
Mika Dede 2021-09-28 16:44:49 +02:00
parent f5b9c5d005
commit a749a38271
No known key found for this signature in database
GPG Key ID: 546586DC38D45BBD
1 changed files with 8 additions and 9 deletions

View File

@ -319,21 +319,20 @@ function draw() {
} else if (matchEnded()) {
g.setFontAlign(1,0);
g.setFont('Teletext5x9Ascii',1);
g.drawString(
(currentSet()+1) + ' set' + (currentSet() > 0 ? 's' : ''),
40,
8
);
let dur1 = formatDuration(scores[cSet][2] - scores[0][2]);
g.setFont('5x9Numeric7Seg',1);
g.drawString(
dur1,
40,
10
18
);
g.setFont('Teletext5x9Ascii',1);
g.drawString(
(currentSet()+1) + ' set' + (currentSet() > 0 ? 's' : ''),
40,
12
);
}
g.setFontAlign(p === 0 ? -1 : 1,1);