diff options
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r-- | apps/plugins/lib/gray_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index ef41e7e215..91fd4113cd 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c @@ -429,7 +429,7 @@ int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, { for (i = 0; i < 256; i++) { - data = MULU16(depth, lcdlinear[i]) + 127; + data = MULU16(depth, i) + 127; _gray_info.idxtable[i] = (data + (data >> 8)) >> 8; /* approx. data / 255 */ } |