From c00bc7c512b270dc02917bc8e582c77a95180499 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 12 Apr 2007 19:45:46 +0000 Subject: [PATCH] add missing FBIOGET_VSCREENINFO --- lib/gdi/fb.cpp | 2 ++ 1 file changed, 2 insertions(+) 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", -- 2.30.2