Update to rev5a

This commit is contained in:
Zachary Hall 2023-11-25 16:52:12 -08:00
parent 7530376cce
commit b7d680fd0c

View file

@ -172,12 +172,12 @@ int uploadimage(const char *filename) {
if ((int8_t)read8() == -1) { if ((int8_t)read8() == -1) {
compress = true; compress = true;
}; };
// Load the border color
borderidx = read8();
printf("Skipping reserved bytes...\n"); printf("Skipping reserved bytes...\n");
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
read8(); read8();
} }
// Load the border color
borderidx = read8();
printf("Border color: %02x\n", borderidx); printf("Border color: %02x\n", borderidx);
printf("Reading palette entries...\n"); printf("Reading palette entries...\n");
for (i = 0; i < (uint16_t)significant_palette_entries*2; i++) { for (i = 0; i < (uint16_t)significant_palette_entries*2; i++) {