bitmap drawing: Use extra bit in mask to avoid nested if() in switch-cases.
commit1430b07894d1f7c11b907d8b3e42a91fccc5139b
authorThomas Martitz <kugel@rockbox.org>
Fri, 8 Feb 2013 22:33:54 +0000 (8 23:33 +0100)
committerThomas Martitz <kugel@rockbox.org>
Tue, 12 Feb 2013 09:34:48 +0000 (12 10:34 +0100)
tree54628f95d91f4df365fea3000560cf0bcad001cd
parentca634a0ac0877c60417182d6415f159fefd6ad9d
bitmap drawing: Use extra bit in mask to avoid nested if() in switch-cases.

Speeds up alpha bitmap drawing by up to 10%. mono bitmap drawing is also a tiny bit faster.

Change-Id: I5a9379740c1a0091de9c621aabbe57d767ce2905
firmware/drivers/lcd-16bit-common.c
firmware/export/lcd.h