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 --- apps/plugins/lib/grey.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apps/plugins/lib/grey.h') 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 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; -- cgit v1.2.3