aboutsummaryrefslogtreecommitdiff
path: root/lib/gdi/lcd.cpp
diff options
context:
space:
mode:
authorMladen Horvat <acidburn@opendreambox.org>2008-11-07 21:28:24 +0100
committerMladen Horvat <acidburn@opendreambox.org>2008-11-07 21:28:24 +0100
commit3b38fb5a9b457616263dff213a7a44436d75d216 (patch)
tree2272d90f7e02d3d8a44282c6f7f69b85c4f1e757 /lib/gdi/lcd.cpp
parent9f6d42608ec11759fd038246a2ecd888a88d8398 (diff)
parenta90424c0dc460b587898b65f6a89a564399ab551 (diff)
downloadenigma2-3b38fb5a9b457616263dff213a7a44436d75d216.tar.gz
enigma2-3b38fb5a9b457616263dff213a7a44436d75d216.zip
Merge branch 'master' of git://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);