From d146970ca1e5c9b0641301d50823d29b2e25c9e4 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 7 Jan 2014 22:14:41 +0100 Subject: 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 --- firmware/export/lcd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'firmware/export/lcd.h') 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; -#endif -#if LCD_DEPTH > 1 + /* needed for even for mono displays to support greylib */ unsigned fg_pattern; unsigned bg_pattern; #endif -- cgit v1.2.3