X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgdi%2Ffb.cpp;h=7ee555c1f266391aefc9dfba2b18d0acb7469df5;hb=a9984df92fc78bd4955b24502724b74b935dcc3f;hp=bb6041e0f76094710cb85642176a428daffa72f0;hpb=471b217e32f45b8ca085593f8f93735883e2be2a;p=vuplus_dvbapp diff --git a/lib/gdi/fb.cpp b/lib/gdi/fb.cpp index bb6041e..7ee555c 100644 --- a/lib/gdi/fb.cpp +++ b/lib/gdi/fb.cpp @@ -62,6 +62,7 @@ fbClass::fbClass(const char *fb) } available=fix.smem_len; + m_phys_mem = fix.smem_start; eDebug("%dk video mem", available/1024); lfb=(unsigned char*)mmap(0, available, PROT_WRITE|PROT_READ, MAP_SHARED, fd, 0); if (!lfb) @@ -82,12 +83,12 @@ nolfb: int fbClass::showConsole(int state) { - int fd=open("/dev/vc/0", O_RDWR); + int fd=open("/dev/tty0", O_RDWR); if(fd>=0) { if(ioctl(fd, KDSETMODE, state?KD_TEXT:KD_GRAPHICS)<0) { - eDebug("setting /dev/vc/0 status failed."); + eDebug("setting /dev/tty0 status failed."); } close(fd); }