From e02bda210539ec3f2fda266e7f707cbedd19f3ba Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 24 Jan 2014 10:32:08 +0100 Subject: eglfs: Fix physical screen size regression for some hooks On boards that provide their own custom ways of querying the screen size the resolution of widget apps became somewhat incorrect after the recent eglfs/eglconvenience refactor. This is because the physical size query helper was not able to access the screenSize() provided by the hooks, it was instead falling back to the default fb query which in turn returned the default screen size (e.g. 800x600). Change-Id: I46d487b61341d69dd9cb76d93198b1f44b64f195 Reviewed-by: Andy Nichols --- src/plugins/platforms/eglfs/qeglfshooks_stub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforms/eglfs') diff --git a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp index b81d260ecb..dbfd8d99dc 100644 --- a/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp +++ b/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp @@ -100,7 +100,7 @@ EGLNativeDisplayType QEglFSHooks::platformDisplay() const QSizeF QEglFSHooks::physicalScreenSize() const { - return q_physicalScreenSizeFromFb(framebuffer); + return q_physicalScreenSizeFromFb(framebuffer, screenSize()); } QSize QEglFSHooks::screenSize() const -- cgit v1.2.3