From: Felix Domke Date: Thu, 12 Apr 2007 19:45:46 +0000 (+0000) Subject: add missing FBIOGET_VSCREENINFO X-Git-Tag: 2.6.0~2317 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/c00bc7c512b270dc02917bc8e582c77a95180499 add missing FBIOGET_VSCREENINFO --- diff --git a/lib/gdi/fb.cpp b/lib/gdi/fb.cpp index 727042dd..5d895901 100644 --- a/lib/gdi/fb.cpp +++ b/lib/gdi/fb.cpp @@ -111,6 +111,8 @@ int fbClass::SetMode(unsigned int nxRes, unsigned int nyRes, unsigned int nbpp) m_number_of_pages = screeninfo.yres_virtual / nyRes; + ioctl(fd, FBIOGET_VSCREENINFO, &screeninfo); + if ((screeninfo.xres!=nxRes) && (screeninfo.yres!=nyRes) && (screeninfo.bits_per_pixel!=nbpp)) { eDebug("SetMode failed: wanted: %dx%dx%d, got %dx%dx%d",