[] iconbits: fix warnings
parent
61723ddf0d
commit
422892cb48
|
|
@ -64,6 +64,7 @@ Bangle.on("lock", function() {
|
||||||
kule[2] = Math.random();
|
kule[2] = Math.random();
|
||||||
}
|
}
|
||||||
function selectColor (x) {
|
function selectColor (x) {
|
||||||
|
let c;
|
||||||
if (x < g.getWidth()/2) {
|
if (x < g.getWidth()/2) {
|
||||||
c = 0;
|
c = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -114,7 +115,6 @@ Bangle.on("lock", function() {
|
||||||
g.clear();
|
g.clear();
|
||||||
if (mode == "draw")
|
if (mode == "draw")
|
||||||
return;
|
return;
|
||||||
const w = g.getWidth;
|
|
||||||
g.setColor(0, 0, 0.5);
|
g.setColor(0, 0, 0.5);
|
||||||
g.fillRect(0, 0, g.getWidth(), g.getHeight());
|
g.fillRect(0, 0, g.getWidth(), g.getHeight());
|
||||||
g.setColor(1, 1, 1);
|
g.setColor(1, 1, 1);
|
||||||
|
|
@ -278,15 +278,13 @@ Bangle.on("lock", function() {
|
||||||
do_draw(from, to);
|
do_draw(from, to);
|
||||||
drawUtil();
|
drawUtil();
|
||||||
}
|
}
|
||||||
function on_btn_old(n) {
|
|
||||||
}
|
|
||||||
function on_btn(n) {
|
function on_btn(n) {
|
||||||
function f(i) {
|
function f(i) {
|
||||||
return "\\x" + i.toString(16).padStart(2, '0');
|
return "\\x" + i.toString(16).padStart(2, '0');
|
||||||
}
|
}
|
||||||
print("on_btn", n);
|
print("on_btn", n);
|
||||||
print(g.getPixel(0, 0));
|
print(g.getPixel(0, 0));
|
||||||
s = f(0) + f(font_width) + f(font_height) + f(1);
|
let s = f(0) + f(font_width) + f(font_height) + f(1);
|
||||||
// 0..black, 65535..white
|
// 0..black, 65535..white
|
||||||
for (let y = 0; y < font_height; y++) {
|
for (let y = 0; y < font_height; y++) {
|
||||||
let v = 0;
|
let v = 0;
|
||||||
|
|
@ -342,4 +340,4 @@ icon_sunrise = "\x00\x08\x16\x01\x00\x00\x00\x24\x00\x99\x24\x42\xff\x00\x00\x00
|
||||||
icon_sunset = "\x00\x08\x16\x01\x00\x00\x24\x00\x81\x00\xff\x42\x24\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
|
icon_sunset = "\x00\x08\x16\x01\x00\x00\x24\x00\x81\x00\xff\x42\x24\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
|
||||||
icon_gps_no_paused = "\x00\x08\x16\x01\x00\x24\x24\x24\x24\x24\x00\x80\x9c\xa2\xe3\xa2\x9c\x80\x00\x00\x00\x00\x00\x00\x00\x00";
|
icon_gps_no_paused = "\x00\x08\x16\x01\x00\x24\x24\x24\x24\x24\x00\x80\x9c\xa2\xe3\xa2\x9c\x80\x00\x00\x00\x00\x00\x00\x00\x00";
|
||||||
|
|
||||||
//ft(icon_10 + "23.1" + icon_hpa);
|
//ft(icon_10 + "23.1" + icon_hpa);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue