ref: 2cc17f780a4b50ac3eebeb7e6865639926a611cd
parent: 418b73bc6d5c811bff464ee45a105b9c01248a89
author: Rangi <[email protected]>
date: Mon Feb 21 03:58:22 EST 2022
Explain why make_frames works
--- a/tools/pokemon_animation.c
+++ b/tools/pokemon_animation.c
@@ -107,8 +107,7 @@
}
bitmask->bitlength++;
}
- // I don't remember exactly why this works.
- // I think it was that the bits are read backwards, but not indexed backwards.
+ // tile order ABCDEFGHIJKLMNOP... becomes db order %HGFEDCBA %PONMLKJI ...
int last = bitmask->bitlength - 1;
bitmask->data[last / 8] >>= (7 - (last % 8));