summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/gray.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/gray.h')
-rw-r--r--apps/plugins/lib/gray.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/plugins/lib/gray.h b/apps/plugins/lib/gray.h
index 398462fd81..460aa83a82 100644
--- a/apps/plugins/lib/gray.h
+++ b/apps/plugins/lib/gray.h
@@ -27,7 +27,7 @@
27 27
28#include "plugin.h" 28#include "plugin.h"
29 29
30#ifdef HAVE_LCD_BITMAP /* and also not for the Player */ 30#ifdef HAVE_LCD_BITMAP /* not for the Player */
31 31
32#define GRAY_BRIGHTNESS(y) (y) 32#define GRAY_BRIGHTNESS(y) (y)
33 33
@@ -109,9 +109,6 @@ void gray_ub_scroll_down(int count);
109 109
110/*** Internal stuff ***/ 110/*** Internal stuff ***/
111 111
112#define _PBLOCK_EXP 3
113#define _PBLOCK (1 << _PBLOCK_EXP)
114
115/* flag definitions */ 112/* flag definitions */
116#define _GRAY_RUNNING 0x0001 /* greyscale overlay is running */ 113#define _GRAY_RUNNING 0x0001 /* greyscale overlay is running */
117#define _GRAY_DEFERRED_UPDATE 0x0002 /* lcd_update() requested */ 114#define _GRAY_DEFERRED_UPDATE 0x0002 /* lcd_update() requested */
@@ -124,10 +121,16 @@ void gray_ub_scroll_down(int count);
124struct _gray_info 121struct _gray_info
125{ 122{
126 int x; 123 int x;
127 int by; /* 8-pixel units */ 124 int y;
128 int width; 125 int width;
129 int height; 126 int height;
127#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
128 int bx; /* 8-pixel units */
129 int bwidth; /* 8-pixel units */
130#else /* vertical packing */
131 int by; /* 8-pixel units */
130 int bheight; /* 8-pixel units */ 132 int bheight; /* 8-pixel units */
133#endif
131 int depth; /* number_of_bitplanes = (number_of_grayscales - 1) */ 134 int depth; /* number_of_bitplanes = (number_of_grayscales - 1) */
132 unsigned long flags; /* various flags, see #defines */ 135 unsigned long flags; /* various flags, see #defines */
133#ifndef SIMULATOR 136#ifndef SIMULATOR