Upgrading to pxt 3.5.4 (#367)

* pxt/common updates

* added game lib

* removing gamelib
This commit is contained in:
Peli de Halleux authored and GitHub committed 2018-03-16 14:32:11 -07:00
1 parent d714e4df42
commit 06f66571cf
4 files changed
+7 -7

No files matched your search

+1 -1
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;
+2 -2
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);