X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/9bc92cbd0be7b1973960e88808feaca26a00aecd..b17f73948206eb4f4ac009856542a0266c3ad224:/lib/gdi/fb.cpp diff --git a/lib/gdi/fb.cpp b/lib/gdi/fb.cpp index c8fd94be..5d895901 100644 --- a/lib/gdi/fb.cpp +++ b/lib/gdi/fb.cpp @@ -7,7 +7,6 @@ #include #include -#include #include #ifndef FBIO_WAITFORVSYNC @@ -112,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",