PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Revision:
29:9467921dec10
Parent:
27:24970a0c35a8
--- a/POKITTO_CORE/PokittoDisplay.cpp	Fri Jan 05 02:19:51 2018 +0000
+++ b/POKITTO_CORE/PokittoDisplay.cpp	Mon Jan 29 12:29:45 2018 +0000
@@ -494,7 +494,7 @@
     c = c & (PALETTE_SIZE-1) ; //don't let palette go out of bounds
     if (bpp==1 && c) c=0xFF; // set all pixels
     else if (bpp==2) {
-        c = bgcolor & 0x3;
+        c = c & 0x3;
         c = c | (c << 2);
         c = c | (c << 4);
     } else {