From 1430b07894d1f7c11b907d8b3e42a91fccc5139b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Fri, 8 Feb 2013 23:33:54 +0100 Subject: 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/export/lcd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/export') 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); -- cgit v1.2.3