summaryrefslogtreecommitdiffstats
path: root/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp')
-rw-r--r--mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp b/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
index 1ee95f1f24..7a6c1d3fce 100644
--- a/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
+++ b/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
@@ -61,7 +61,7 @@ private:
QEglFSImx6Hooks::QEglFSImx6Hooks()
{
int width, height;
- mNativeDisplay = fbGetDisplay();
+ mNativeDisplay = fbGetDisplayByIndex(0);
fbGetDisplayGeometry(mNativeDisplay, &width, &height);
mScreenSize.setHeight(height);
mScreenSize.setWidth(width);
@@ -76,7 +76,7 @@ EGLNativeWindowType QEglFSImx6Hooks::createNativeWindow(const QSize &size, const
{
Q_UNUSED(format);
- EGLNativeWindowType eglWindow = fbCreateWindow(mNativeDisplay, 0, 1, size.width(), size.height());
+ EGLNativeWindowType eglWindow = fbCreateWindow(mNativeDisplay, 0, 0, size.width(), size.height());
return eglWindow;
}