1
0
Fork 0

Add {msb:true} so that on new builds, color is correct for 16 bit

master
Gordon Williams 2020-05-07 11:52:15 +01:00
parent 9b08134515
commit 31a58a15a4
3 changed files with 3 additions and 2 deletions

View File

@ -168,7 +168,7 @@
"name": "Image background clock", "name": "Image background clock",
"shortName":"Image Clock", "shortName":"Image Clock",
"icon": "app.png", "icon": "app.png",
"version":"0.02", "version":"0.03",
"description": "A clock with an image as a background", "description": "A clock with an image as a background",
"tags": "clock", "tags": "clock",
"type" : "clock", "type" : "clock",

View File

@ -1,2 +1,3 @@
0.01: New App! 0.01: New App!
0.02: Add configurable color - and 'this is fine.' 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

View File

@ -8,7 +8,7 @@ var img = require("Storage").read("imgclock.face.img");
var IX = inf.x, IY = inf.y, IBPP = inf.bpp; var IX = inf.x, IY = inf.y, IBPP = inf.bpp;
var IW = 110, IH = 45, OY = 24; var IW = 110, IH = 45, OY = 24;
require("Font7x11Numeric7Seg").add(Graphics); 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 cgimg = {width:IW,height:IH,bpp:IBPP,buffer:cg.buffer};
var locale = require("locale"); var locale = require("locale");