sprite DMA works
[mdlife] / src / sprite.h
index 78d10b9..17050e9 100644 (file)
@@ -9,7 +9,7 @@ struct hwsprite {
        uint8_t next;
        uint16_t tile;
        uint16_t x;
-} __attribute__((packed));
+} __attribute__((packed, aligned(2)));
 
 #define SPR_SIZE(x, y) ((((x) - 1) << 2) | ((y) - 1))