forked from FOSS/BangleApps
font clock bug fix: Transition on vecotor 4 clock between roman numerals and digits not clearing
parent
658b10fed3
commit
1fc24b9fe7
|
@ -81,7 +81,6 @@ class RomanNumeralFont extends NumeralFont{
|
|||
x+dim[0],y+dim[1],
|
||||
x,y+dim[1]
|
||||
]);*/
|
||||
g.setColor(1.0,1.0,1.0);
|
||||
g.setFontAlign(-1,-1,0);
|
||||
g.setFont("Vector",50);
|
||||
g.drawString(hour_txt,x,y);
|
||||
|
|
|
@ -71,7 +71,7 @@ class HourScriber {
|
|||
this.curr_numeral_font.draw(this.curr_hour_str,
|
||||
this.curr_hour_x,
|
||||
this.curr_hour_y);
|
||||
//console.log("erasing old hour");
|
||||
//console.log("erasing old hour display:" + this.curr_hour_str + " color:" + background);
|
||||
var hours_frac = this.hours / 12;
|
||||
var angle = TWO_PI*hours_frac;
|
||||
var dimensions = this.numeral_font.getDimensions(this.hours);
|
||||
|
|
|
@ -219,6 +219,7 @@ function next_font() {
|
|||
}
|
||||
|
||||
if (curr_font != numeral_fonts_index) {
|
||||
console.log("numeral font changed")
|
||||
for (var i = 0; i < hour_scribers.length; i++) {
|
||||
hour_scribers[i].setNumeralFont(
|
||||
numeral_fonts[numeral_fonts_index]);
|
||||
|
|
Loading…
Reference in New Issue