summaryrefslogtreecommitdiffstats
path: root/firmware/export/lcd.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-02-08 23:33:54 +0100
committerThomas Martitz <kugel@rockbox.org>2013-02-12 10:34:48 +0100
commit1430b07894d1f7c11b907d8b3e42a91fccc5139b (patch)
tree54628f95d91f4df365fea3000560cf0bcad001cd /firmware/export/lcd.h
parentca634a0ac0877c60417182d6415f159fefd6ad9d (diff)
downloadrockbox-1430b07894d1f7c11b907d8b3e42a91fccc5139b.tar.gz
rockbox-1430b07894d1f7c11b907d8b3e42a91fccc5139b.zip
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
Diffstat (limited to 'firmware/export/lcd.h')
-rw-r--r--firmware/export/lcd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index a82c00534d..5ad2d83513 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -289,6 +289,8 @@ extern void lcd_jump_scroll_delay(int ms);
#define DRMODE_FG 2
#define DRMODE_SOLID 3
#define DRMODE_INVERSEVID 4 /* used as bit modifier for basic modes */
+/* Internal drawmode modifiers. DO NOT use with set_drawmode() */
+#define DRMODE_INT_MOD 8
/* Low-level drawing function types */
typedef void lcd_pixelfunc_type(int x, int y);