path: root/firmware/export/lcd.h
diff options
authorThomas Martitz <>2014-01-07 22:14:41 +0100
committerThomas Martitz <>2014-01-07 22:14:41 +0100
commitd146970ca1e5c9b0641301d50823d29b2e25c9e4 (patch)
tree30f738042a8d81e9336b594d1d52ec75e428d3b2 /firmware/export/lcd.h
parente1c7b3b8f72becc9079c04253a2985f577850a48 (diff)
lcd/grey: Enable viewport fg_pattern and bg_pattern for all bitmap targets.
Greylib performed a horrible hack and stored fg and bg patterns in other struct viewport fields. One of them was just removed. So instead of this hack simply enable the *_pattern fields for mono targets as well, so that greylib can use them normally. Change-Id: Ib0842ebcc97f5bf9d9382b4471903afa2f96f39f
Diffstat (limited to 'firmware/export/lcd.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h
index 9efec9da4d..00ada116c0 100644
--- a/firmware/export/lcd.h
+++ b/firmware/export/lcd.h
@@ -44,8 +44,7 @@ struct viewport {
int flags;
int font;
int drawmode;
-#if LCD_DEPTH > 1
+ /* needed for even for mono displays to support greylib */
unsigned fg_pattern;
unsigned bg_pattern;