#ifndef _H_PreShiftedBitmap #define _H_PreShiftedBitmap #include // A PreShiftedBitmap is always 16 pixels wide. // typedef struct PreShiftedBitmap { byte height; // in pixel rows, non zero // Offsets in bytes[]. // A PreShiftedBitmap can be only be written horizontal pixel positions // that are even, and less than 240. // This horiz. position is thus equal to {0, 2, 4, 6} modulo 8. // That modulo 8 value is the index into preShiftOffsets[]. // The offset obtained this way is an index in bytes[]. // At that offset in bytes[], there are six bytes for each row of the bitmap. // The first 3 bytes are mask bytes. The last 3 are image bytes. // word preShiftOffsets[4]; byte bytes[]; } PreShiftedBitmap; #endif /* _H_PreShiftedBitmap */