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.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')
-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 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); | |||
289 | #define DRMODE_FG 2 | 289 | #define DRMODE_FG 2 |
290 | #define DRMODE_SOLID 3 | 290 | #define DRMODE_SOLID 3 |
291 | #define DRMODE_INVERSEVID 4 /* used as bit modifier for basic modes */ | 291 | #define DRMODE_INVERSEVID 4 /* used as bit modifier for basic modes */ |
292 | /* Internal drawmode modifiers. DO NOT use with set_drawmode() */ | ||
293 | #define DRMODE_INT_MOD 8 | ||
292 | 294 | ||
293 | /* Low-level drawing function types */ | 295 | /* Low-level drawing function types */ |
294 | typedef void lcd_pixelfunc_type(int x, int y); | 296 | typedef void lcd_pixelfunc_type(int x, int y); |