4 ms·
XOR is fascinating. It can be understood as binary addition, discarding the carry (the higher bit of the result). It is also useful for drawing a cursor pixmap:
by Matumio 12y ago
XOR is fascinating. It can be understood as binary addition, discarding the carry (the higher bit of the result). It is also useful for drawing a cursor pixmap: XOR the screen with the cursor, XOR again to remove the cursor, without ever copying the area below the cursor.