mirror of https://github.com/espruino/BangleApps
Add {msb:true} so that on new builds, color is correct for 16 bit
parent
9b08134515
commit
31a58a15a4
|
@ -168,7 +168,7 @@
|
|||
"name": "Image background clock",
|
||||
"shortName":"Image Clock",
|
||||
"icon": "app.png",
|
||||
"version":"0.02",
|
||||
"version":"0.03",
|
||||
"description": "A clock with an image as a background",
|
||||
"tags": "clock",
|
||||
"type" : "clock",
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
0.01: New App!
|
||||
0.02: Add configurable color - and 'this is fine.'
|
||||
0.03: Add {msb:true} so that on new builds, color is correct for 16 bit
|
||||
|
|
|
@ -8,7 +8,7 @@ var img = require("Storage").read("imgclock.face.img");
|
|||
var IX = inf.x, IY = inf.y, IBPP = inf.bpp;
|
||||
var IW = 110, IH = 45, OY = 24;
|
||||
require("Font7x11Numeric7Seg").add(Graphics);
|
||||
var cg = Graphics.createArrayBuffer(IW,IH,IBPP);
|
||||
var cg = Graphics.createArrayBuffer(IW,IH,IBPP,{msb:true});
|
||||
var cgimg = {width:IW,height:IH,bpp:IBPP,buffer:cg.buffer};
|
||||
var locale = require("locale");
|
||||
|
||||
|
|
Loading…
Reference in New Issue