#include "cardgame.h" static byte * work(void) { byte *dest = getCurrentCharPos(); for (byte i = 0; i < PIXEL_ROWS_PER_GLYPH; ++i) { *dest ^= 0xFF; dest += BYTES_PER_SCREEN_ROW; } return dest; } void invertCharAtCursorExceptRowBelowGlyph(void) { work(); } void invertCharAtCursor(void) { *work() ^= 0xFF; // row below glyph }