X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgdi%2Flcd.cpp;h=ecc19b5389853bc69bcf35f6ef95bcde9c089d68;hb=04e48eed8c5dfc1e1a642b52ab0d03e40171e86e;hp=3911719466e7e1c6b5b37db45585db5161867b5a;hpb=aee1b078bb6e02de8df41fd3f2f3fb774cda8761;p=vuplus_dvbapp diff --git a/lib/gdi/lcd.cpp b/lib/gdi/lcd.cpp index 3911719..ecc19b5 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);