X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fgdi%2Flcd.cpp;h=a5ac351231894e01b0757e4fad13d56999045c7a;hp=a7dc22db19dc3fddebfc3c67e1ad71bae2871d5b;hb=b72c9852440926ac82fd4ca3186278edd7167427;hpb=05d902ffb1a0dfb03cbb69324ceb20439b73c977 diff --git a/lib/gdi/lcd.cpp b/lib/gdi/lcd.cpp old mode 100644 new mode 100755 index a7dc22d..a5ac351 --- a/lib/gdi/lcd.cpp +++ b/lib/gdi/lcd.cpp @@ -4,8 +4,12 @@ #include #include +#if defined(HAVE_DBOX_FP_H) && defined(HAVE_DBOX_LCD_KS0713_H) #include #include +#else +#define NO_LCD 1 +#endif #include #include @@ -70,10 +74,6 @@ eDBoxLCD::eDBoxLCD() eDebug("found OLED display!"); is_oled = 1; } -#else - lcdfd = -1; -#endif - instance=this; if (lcdfd<0) eDebug("couldn't open LCD - load lcd.o!"); @@ -106,6 +106,9 @@ eDBoxLCD::eDBoxLCD() is_oled = 3; } } +#endif + instance=this; + setSize(xres, yres, bpp); } @@ -117,6 +120,7 @@ void eDBoxLCD::setInverted(unsigned char inv) int eDBoxLCD::setLCDContrast(int contrast) { +#ifndef NO_LCD int fp; if((fp=open("/dev/dbox/fp0", O_RDWR))<=0) { @@ -129,11 +133,13 @@ int eDBoxLCD::setLCDContrast(int contrast) eDebug("[LCD] can't set lcd contrast"); } close(fp); +#endif return(0); } int eDBoxLCD::setLCDBrightness(int brightness) { +#ifndef NO_LCD eDebug("setLCDBrightness %d", brightness); FILE *f=fopen("/proc/stb/lcd/oled_brightness", "w"); if (!f) @@ -157,6 +163,7 @@ int eDBoxLCD::setLCDBrightness(int brightness) eDebug("[LCD] can't set lcd brightness (%m)"); close(fp); } +#endif return(0); } @@ -176,6 +183,9 @@ eDBoxLCD *eDBoxLCD::getInstance() void eDBoxLCD::update() { +#ifdef BUILD_VUPLUS /* ikseong */ + return ; +#endif if (lcdfd >= 0) { if (!is_oled || is_oled == 2)