forked from len0rd/rockbox
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
This commit is contained in:
parent
e1c7b3b8f7
commit
d146970ca1
5 changed files with 27 additions and 42 deletions
|
@ -198,10 +198,6 @@ struct _grey_info
|
|||
struct viewport *vp; /* current viewport in use */
|
||||
};
|
||||
|
||||
/* Stuff these here for now. LCD depth of 1 has no 'pattern' members. */
|
||||
#define _GREY_FG_BRIGHTNESS(vp) ((vp)->flags)
|
||||
#define _GREY_BG_BRIGHTNESS(vp) ((vp)->line_height)
|
||||
|
||||
/* Global variable, defined in the plugin */
|
||||
extern struct _grey_info _grey_info;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue