diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2013-02-08 23:33:54 +0100 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2013-02-12 10:34:48 +0100 |
| commit | 1430b07894d1f7c11b907d8b3e42a91fccc5139b (patch) | |
| tree | 54628f95d91f4df365fea3000560cf0bcad001cd /firmware/export | |
| parent | ca634a0ac0877c60417182d6415f159fefd6ad9d (diff) | |
| download | rockbox-1430b07894d1f7c11b907d8b3e42a91fccc5139b.zip rockbox-1430b07894d1f7c11b907d8b3e42a91fccc5139b.tar.gz rockbox-1430b07894d1f7c11b907d8b3e42a91fccc5139b.tar.bz2 rockbox-1430b07894d1f7c11b907d8b3e42a91fccc5139b.tar.xz | |
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')
| -rw-r--r-- | firmware/export/lcd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index a82c005..5ad2d83 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); |