summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-08-02 20:19:20 +0000
committerJens Arnold <amiconn@rockbox.org>2006-08-02 20:19:20 +0000
commit344849cc22efe7e042025dd17368a62f991be458 (patch)
treecd37d0ee978624fa3e970aefcb9a1448f9924d3f /apps/plugins/lib
parent8fd68a2979e3770c78bdcac0ce154714e99f0610 (diff)
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
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/gray_core.c2
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 */
}