summaryrefslogtreecommitdiff
path: root/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-16 16:45:55 +1000
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-16 16:52:19 +1000
commit75719e4e06882825fe056935d782b4153bf0ac5b (patch)
treead85ada002fda88d31afefb18c36b03a567de338 /src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
parent8e4fa6e87f74cfb3457e8270a361cf30ca7d3593 (diff)
downloadqt4-tools-75719e4e06882825fe056935d782b4153bf0ac5b.tar.gz
Make screen rotation work properly with the PowerVR screen driver
Task-number: QT-2261 Reviewed-by: Tom
Diffstat (limited to 'src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c')
-rw-r--r--src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
index ac9dc8d834..c1b655a5b1 100644
--- a/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
+++ b/src/plugins/gfxdrivers/powervr/QWSWSEGL/pvrqwsdrawable.c
@@ -617,6 +617,16 @@ void pvrQwsGetGeometry(PvrQwsDrawable *drawable, PvrQwsRect *rect)
*rect = drawable->rect;
}
+void pvrQwsSetRotation(PvrQwsDrawable *drawable, int angle)
+{
+ if (drawable->rotationAngle != angle) {
+ drawable->rotationAngle = angle;
+
+ /* Force the buffers to be recreated if the rotation angle changes */
+ pvrQwsInvalidateBuffers(drawable);
+ }
+}
+
int pvrQwsGetStride(PvrQwsDrawable *drawable)
{
if (drawable->backBuffersValid)