summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/lcd-bitmap-common.c6
-rw-r--r--firmware/export/lcd-remote.h3
-rw-r--r--firmware/export/lcd.h13
3 files changed, 13 insertions, 9 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 10a567edf1..c04f57ef22 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -360,6 +360,12 @@ static void LCDFN(putsxyofs_style)(int xpos, int ypos,
360 int text_ypos = ypos; 360 int text_ypos = ypos;
361 int line_height = font_get(current_vp->font)->height; 361 int line_height = font_get(current_vp->font)->height;
362 text_ypos += h/2 - line_height/2; /* center the text in the line */ 362 text_ypos += h/2 - line_height/2; /* center the text in the line */
363
364 if ((style & STYLE_MODE_MASK) == STYLE_NONE) {
365 if (str[0])
366 LCDFN(putsxyofs)(xpos, text_ypos, offset, str);
367 return;
368 }
363#if defined(MAIN_LCD) && defined(HAVE_LCD_COLOR) 369#if defined(MAIN_LCD) && defined(HAVE_LCD_COLOR)
364 int oldfgcolor = current_vp->fg_pattern; 370 int oldfgcolor = current_vp->fg_pattern;
365 int oldbgcolor = current_vp->bg_pattern; 371 int oldbgcolor = current_vp->bg_pattern;
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h
index 74b668db3d..be6816cd7e 100644
--- a/firmware/export/lcd-remote.h
+++ b/firmware/export/lcd-remote.h
@@ -37,9 +37,6 @@
37int remote_type(void); 37int remote_type(void);
38#endif 38#endif
39 39
40#define STYLE_DEFAULT 0x00000000
41#define STYLE_INVERT 0x20000000
42
43#if LCD_REMOTE_DEPTH <= 8 40#if LCD_REMOTE_DEPTH <= 8
44#if (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED) \ 41#if (LCD_REMOTE_PIXELFORMAT == VERTICAL_INTERLEAVED) \
45 || (LCD_REMOTE_PIXELFORMAT == HORIZONTAL_INTERLEAVED) 42 || (LCD_REMOTE_PIXELFORMAT == HORIZONTAL_INTERLEAVED)
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 7ea053f241..37e6bf4d16 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -119,12 +119,13 @@ enum screen_type {
119#define STRIDE(screen, w, h) (screen==SCREEN_MAIN?STRIDE_MAIN((w), \ 119#define STRIDE(screen, w, h) (screen==SCREEN_MAIN?STRIDE_MAIN((w), \
120 (h)):STRIDE_REMOTE((w),(h))) 120 (h)):STRIDE_REMOTE((w),(h)))
121 121
122#define STYLE_DEFAULT 0x00000000 122#define STYLE_NONE 0x00000000
123#define STYLE_COLORED 0x10000000 123#define STYLE_DEFAULT 0x01000000
124#define STYLE_INVERT 0x20000000 124#define STYLE_COLORED 0x02000000
125#define STYLE_COLORBAR 0x40000000 125#define STYLE_INVERT 0x04000000
126#define STYLE_GRADIENT 0x80000000 126#define STYLE_COLORBAR 0x08000000
127#define STYLE_MODE_MASK 0xF0000000 127#define STYLE_GRADIENT 0x10000000
128#define STYLE_MODE_MASK 0xFF000000
128/* HACK: This isnt really a style, We need to be able to tell some of 129/* HACK: This isnt really a style, We need to be able to tell some of
129 * the lcd API that we want to draw text to a specific pixel instead 130 * the lcd API that we want to draw text to a specific pixel instead
130 * of a char. Remove this hack when the whole LCD api goes to fully 131 * of a char. Remove this hack when the whole LCD api goes to fully