aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-08-19 12:16:53 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-08-19 12:16:53 +0000
commitaee1b078bb6e02de8df41fd3f2f3fb774cda8761 (patch)
tree86a7dd04601a0a7f56fa902f889ed6f2db2325be
parent22efb0192f5425079e1a6715a45ba645363012fb (diff)
downloadenigma2-aee1b078bb6e02de8df41fd3f2f3fb774cda8761.tar.gz
enigma2-aee1b078bb6e02de8df41fd3f2f3fb774cda8761.zip
fix for dm800 oled
-rw-r--r--lib/gdi/lcd.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/gdi/lcd.cpp b/lib/gdi/lcd.cpp
index 5fe1c3ad..39117194 100644
--- a/lib/gdi/lcd.cpp
+++ b/lib/gdi/lcd.cpp
@@ -44,12 +44,18 @@ void eLCD::unlock()
eDBoxLCD::eDBoxLCD(): eLCD(eSize(132, 64))
{
+ is_oled = 0;
#ifndef NO_LCD
lcdfd = open("/dev/dbox/oled0", O_RDWR);
if (lcdfd < 0)
{
+ FILE *f=fopen("/proc/stb/fp/oled_brightness", "w");
+ if (f)
+ {
+ is_oled = 2;
+ fclose(f);
+ }
lcdfd = open("/dev/dbox/lcd0", O_RDWR);
- is_oled = 0;
} else
{
eDebug("found OLED display!");
@@ -135,7 +141,7 @@ eDBoxLCD *eDBoxLCD::getInstance()
void eDBoxLCD::update()
{
- if (!is_oled)
+ if (!is_oled || is_oled == 2)
{
unsigned char raw[132*8];
int x, y, yy;