aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/lcd.cpp
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2008-11-10 10:18:28 +0100
committerFraxinas <andreas.frisch@multimedia-labs.de>2008-11-10 10:18:28 +0100
commit4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c (patch)
tree1ae11748c8a14720c98fb666ffaf8615fd5ff038 /lib/gdi/lcd.cpp
parentacbad24424304473f967b678bd9deb51f73acf27 (diff)
parent752d9da39e993387fefbd9ccbf39e5cb8f85735e (diff)
downloadenigma2-4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c.tar.gz
enigma2-4c2cba9ccb6f754aac9378e2fc2c7b546e6d589c.zip
Merge branch 'master' of fraxinas@git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/gdi/lcd.cpp')
-rw-r--r--lib/gdi/lcd.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gdi/lcd.cpp b/lib/gdi/lcd.cpp
index 39117194..ecc19b53 100644
--- a/lib/gdi/lcd.cpp
+++ b/lib/gdi/lcd.cpp
@@ -166,8 +166,14 @@ void eDBoxLCD::update()
memset(raw, 0, 64*64);
for (y=0; y<64; y++)
{
+ int pix=0;
for (x=0; x<128 / 2; x++)
- raw[y*64+x] = (_buffer[y*132 + x * 2 + 2] & 0xF0) |(_buffer[y*132 + x * 2 + 1 + 2] >> 4);
+ {
+ pix = (_buffer[y*132 + x * 2 + 2] & 0xF0) |(_buffer[y*132 + x * 2 + 1 + 2] >> 4);
+ if (inverted)
+ pix = 0xFF - pix;
+ raw[y*64+x] = pix;
+ }
}
if (lcdfd >= 0)
write(lcdfd, raw, 64*64);