[] 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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue