#include <memory.h>
#include <linux/kd.h>
-#include <lib/base/econfig.h>
#include <lib/gdi/fb.h>
#ifndef FBIO_WAITFORVSYNC
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",