Upgrading to pxt 3.5.4 (#367)

* pxt/common updates

* added game lib

* removing gamelib
This commit is contained in:
Peli de Halleux 2018-03-16 14:32:11 -07:00 committed by GitHub
parent d714e4df42
commit 06f66571cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -28,7 +28,7 @@ static uint32_t swap(uint32_t num) {
/** Decompresses a 1-bit gray scale PNG image to image format. */
//%
Image unpackPNG(Buffer png) {
Image_ unpackPNG(Buffer png) {
if (!png) {
DMESG("PNG: Missing image");
return NULL;

View File

@ -45,10 +45,10 @@ static void bitBufferToFrameBuffer(uint8_t *bitBuffer, uint8_t *fb) {
}
static uint8_t *mappedFrameBuffer;
static Image lastImg;
static Image_ lastImg;
//%
void updateScreen(Image img) {
void updateScreen(Image_ img) {
if (img && img != lastImg) {
decrRC(lastImg);
incrRC(img);

View File

@ -45,8 +45,8 @@
"webfonts-generator": "^0.4.0"
},
"dependencies": {
"pxt-common-packages": "0.20.5",
"pxt-core": "3.4.9"
"pxt-common-packages": "0.20.14",
"pxt-core": "3.5.4"
},
"scripts": {
"test": "node node_modules/pxt-core/built/pxt.js travis"

View File

@ -99,8 +99,8 @@ namespace pxsim.image {
}
}
namespace pxsim.pxtcore {
export function updateStats(str: string) {
namespace pxsim.game {
export function takeScreenshot() {
// TODO
}
}