diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 22:14:41 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 22:14:41 +0100 |
commit | d146970ca1e5c9b0641301d50823d29b2e25c9e4 (patch) | |
tree | 30f738042a8d81e9336b594d1d52ec75e428d3b2 /firmware | |
parent | e1c7b3b8f72becc9079c04253a2985f577850a48 (diff) | |
download | rockbox-d146970ca1e5c9b0641301d50823d29b2e25c9e4.tar.gz rockbox-d146970ca1e5c9b0641301d50823d29b2e25c9e4.zip |
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')
-rw-r--r-- | firmware/export/lcd.h | 3 |
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 { | |||
44 | int flags; | 44 | int flags; |
45 | int font; | 45 | int font; |
46 | int drawmode; | 46 | int drawmode; |
47 | #endif | 47 | /* needed for even for mono displays to support greylib */ |
48 | #if LCD_DEPTH > 1 | ||
49 | unsigned fg_pattern; | 48 | unsigned fg_pattern; |
50 | unsigned bg_pattern; | 49 | unsigned bg_pattern; |
51 | #endif | 50 | #endif |