summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp')
-rw-r--r--src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp b/src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp
index 0c26aadc53..917942128f 100644
--- a/src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp
+++ b/src/plugins/platforms/android/src/opengl/qeglfshooks_android.cpp
@@ -57,6 +57,8 @@ public:
QSize screenSize() const;
QSizeF physicalScreenSize() const;
QDpi logicalDpi() const;
+ Qt::ScreenOrientation orientation() const;
+ Qt::ScreenOrientation nativeOrientation() const;
int screenDepth() const;
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const;
EGLNativeWindowType createNativeWindow(const QSize &size, const QSurfaceFormat &format);
@@ -94,6 +96,15 @@ QDpi QEglFSAndroidHooks::logicalDpi() const
return QDpi(lDpi, lDpi);
}
+Qt::ScreenOrientation QEglFSAndroidHooks::orientation() const
+{
+ return QAndroidPlatformIntegration::m_orientation;
+}
+
+Qt::ScreenOrientation QEglFSAndroidHooks::nativeOrientation() const
+{
+ return QAndroidPlatformIntegration::m_nativeOrientation;
+}
EGLNativeWindowType QEglFSAndroidHooks::createNativeWindow(const QSize &size, const QSurfaceFormat &format)
{