summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-07 22:14:41 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-07 22:14:41 +0100
commitd146970ca1e5c9b0641301d50823d29b2e25c9e4 (patch)
tree30f738042a8d81e9336b594d1d52ec75e428d3b2 /apps/plugins/lib/grey.h
parente1c7b3b8f72becc9079c04253a2985f577850a48 (diff)
downloadrockbox-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 'apps/plugins/lib/grey.h')
-rw-r--r--apps/plugins/lib/grey.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/plugins/lib/grey.h b/apps/plugins/lib/grey.h
index d63d19ee4a..63e896bfb6 100644
--- a/apps/plugins/lib/grey.h
+++ b/apps/plugins/lib/grey.h
@@ -198,10 +198,6 @@ struct _grey_info
198 struct viewport *vp; /* current viewport in use */ 198 struct viewport *vp; /* current viewport in use */
199}; 199};
200 200
201/* Stuff these here for now. LCD depth of 1 has no 'pattern' members. */
202#define _GREY_FG_BRIGHTNESS(vp) ((vp)->flags)
203#define _GREY_BG_BRIGHTNESS(vp) ((vp)->line_height)
204
205/* Global variable, defined in the plugin */ 201/* Global variable, defined in the plugin */
206extern struct _grey_info _grey_info; 202extern struct _grey_info _grey_info;
207 203