Exemple #1
0
/*
 * Some window systems (notably X10) choose to represent bitmaps in
 * little-endian order. That is, the least significant bit in the word is
 * the leftmost bit on the screen. This means that bitmaps look
 * "backwards" on the screen from the way they look in source code. So, we
 * flip them all here, once, at initialization time, so they can be edited
 * "by hand".
 *
 * It is up to the window system initialization code to call this, if
 * deemed necessary.
 *
 * Hack hack.
 */
void
FlipBitmaps()
{
	int i;

	bitFlip(normalArrows, 4);
	bitFlip(missile, 1);
	for (i = 0; i < ratBits_width * ratBits_height / 16; i += 64)
		bitFlip((BitCell *) &ratBits[i], 4);
}
Exemple #2
0
void arrayBitFlip(uint8_t* src, int pos) {
  initPointerAndPositionForBitOperation(&src, &pos);
  bitFlip(*src, pos);
}