1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2006-08-02 20:19:20 +00:00
parent 8fd68a2979
commit 344849cc22

View file

@ -429,7 +429,7 @@ int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size,
{ {
for (i = 0; i < 256; i++) 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; _gray_info.idxtable[i] = (data + (data >> 8)) >> 8;
/* approx. data / 255 */ /* approx. data / 255 */
} }