From 36e469db8bb7789c89ff642b51c1471669b830f5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 16 Apr 2013 23:47:17 +0200 Subject: lcd-common: Remove direct style (line decorations) from lcd-puts* functions. This logic is moved into apps (put_line()) which can better handle line decorations with respect to scrolling, mulitline and other complications. Firmware doesn't need this. The remaining drawing function know only one style, that is foreground on background/backdrop (changing drawmode is still supported). Change-Id: I707060edc388a7d723a7d09b0cf5cbda6ec56708 --- firmware/export/lcd.h | 21 --------------------- firmware/export/scroll_engine.h | 3 --- 2 files changed, 24 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index bdeddf0b52..e7a75e893a 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -120,27 +120,6 @@ struct scrollinfo; #define STRIDE(screen, w, h) (screen==SCREEN_MAIN?STRIDE_MAIN((w), \ (h)):STRIDE_REMOTE((w),(h))) -#define STYLE_NONE 0x00000000 -#define STYLE_DEFAULT 0x01000000 -#define STYLE_COLORED 0x02000000 -#define STYLE_INVERT 0x04000000 -#define STYLE_COLORBAR 0x08000000 -#define STYLE_GRADIENT 0x10000000 -#define STYLE_MODE_MASK 0xFF000000 -/* HACK: This isnt really a style, We need to be able to tell some of - * the lcd API that we want to draw text to a specific pixel instead - * of a char. Remove this hack when the whole LCD api goes to fully - * pixel based positioning - jdgordon */ -#define STYLE_XY_PIXELS 0x00010000 -#define STYLE_COLOR_MASK 0x0000FFFF -#ifdef HAVE_LCD_COLOR -#define STYLE_CURLN_MASK 0x0000FF00 -#define STYLE_MAXLN_MASK 0x000000FF -#define CURLN_PACK(x) (((x)<<8) & STYLE_CURLN_MASK) -#define CURLN_UNPACK(x) ((unsigned char)(((x)&STYLE_CURLN_MASK) >> 8)) -#define NUMLN_PACK(x) ((x) & STYLE_MAXLN_MASK) -#define NUMLN_UNPACK(x) ((unsigned char)((x) & STYLE_MAXLN_MASK)) -#endif #ifdef HAVE_LCD_BITMAP #if LCD_DEPTH <=8 diff --git a/firmware/export/scroll_engine.h b/firmware/export/scroll_engine.h index e3fd720550..19a2bc4cca 100644 --- a/firmware/export/scroll_engine.h +++ b/firmware/export/scroll_engine.h @@ -69,9 +69,6 @@ struct scrollinfo int width, height; /* pixel to skip from the beginning of the string, increments as the text scrolls */ int offset; -#ifdef HAVE_LCD_BITMAP - int style; /* line style */ -#endif /* HAVE_LCD_BITMAP */ /* scroll presently forward or backward? */ bool backward; bool bidir; -- cgit v1.2.3