add push_back to ROM and cleanup some stuff

This commit is contained in:
scawful
2023-08-03 19:24:17 -04:00
parent e7ef0fae56
commit 8cac0b71b4
5 changed files with 32 additions and 41 deletions

View File

@@ -89,7 +89,7 @@ Bytes BPP8SNESToIndexed(Bytes data, uint64_t bpp) {
for (int x = 0; x < 8; x++) {
const uint16_t bitmask[] = {0x80, 0x40, 0x20, 0x10,
0x08, 0x04, 0x02, 0x01};
auto b1 = ((data[(y * 2) + ((bpp * 8) * pos)] & (bitmask[x])));
auto b1 = (data[(y * 2) + ((bpp * 8) * pos)] & (bitmask[x]));
auto b2 = (data[((y * 2) + ((bpp * 8) * pos)) + 1] & (bitmask[x]));
auto b3 = (data[(y * 2) + ((bpp * 8) * pos) + 16] & (bitmask[x]));
auto b4 = (data[(y * 2) + ((bpp * 8) * pos) + 17] & (bitmask[x]));