summaryrefslogtreecommitdiffstats
path: root/src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-16 06:45:55 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-16 06:52:19 (GMT)
commit75719e4e06882825fe056935d782b4153bf0ac5b (patch)
treead85ada002fda88d31afefb18c36b03a567de338 /src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h
parent8e4fa6e87f74cfb3457e8270a361cf30ca7d3593 (diff)
downloadQt-75719e4e06882825fe056935d782b4153bf0ac5b.zip
Qt-75719e4e06882825fe056935d782b4153bf0ac5b.tar.gz
Qt-75719e4e06882825fe056935d782b4153bf0ac5b.tar.bz2
Make screen rotation work properly with the PowerVR screen driver
Task-number: QT-2261 Reviewed-by: Tom
Diffstat (limited to 'src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h')
-rw-r--r--src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h b/src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h
index 8bf42c7..5769e70 100644
--- a/src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h
+++ b/src/plugins/gfxdrivers/powervr/pvreglscreen/pvreglscreen.h
@@ -46,16 +46,18 @@
#include <QGLScreen>
#include "pvrqwsdrawable.h"
+class PvrEglScreen;
+
class PvrEglScreenSurfaceFunctions : public QGLScreenSurfaceFunctions
{
public:
- PvrEglScreenSurfaceFunctions(QScreen *s, int screenNum)
+ PvrEglScreenSurfaceFunctions(PvrEglScreen *s, int screenNum)
: screen(s), displayId(screenNum) {}
bool createNativeWindow(QWidget *widget, EGLNativeWindowType *native);
private:
- QScreen *screen;
+ PvrEglScreen *screen;
int displayId;
};
@@ -80,6 +82,8 @@ public:
QWSWindowSurface* createSurface(QWidget *widget) const;
QWSWindowSurface* createSurface(const QString &key) const;
+ int transformation() const;
+
private:
void sync();
void openTty();
@@ -89,6 +93,7 @@ private:
int ttyfd, oldKdMode;
QString ttyDevice;
bool doGraphicsMode;
+ mutable const QScreen *parent;
};
#endif