From 344849cc22efe7e042025dd17368a62f991be458 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 2 Aug 2006 20:19:20 +0000 Subject: Ooops, don't apply correction when it shouldn't be applied. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10418 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/gray_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/lib') 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 */ } -- cgit v1.2.3