summaryrefslogtreecommitdiff
path: root/recipes/powervr-drivers/omap3-sgx-modules/rotation-dss2.patch
blob: ea4a6a10c69c901739a04b9e26e9f08b8f2e060d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c    2009-01-22 17:08:25.000000000 +0530
+++ b/services4/3rdparty/dc_omap3430_linux/omaplfb_displayclass.c 2009-04-25 16:43:22.000000000 +0530
@@ -1014,8 +1014,16 @@
 	psPVRFBInfo->sSysAddr.uiAddr = psLINFBInfo->fix.smem_start;
 	psPVRFBInfo->sCPUVAddr = psLINFBInfo->screen_base;
 
-	psPVRFBInfo->ui32Width = psLINFBInfo->var.xres;
-	psPVRFBInfo->ui32Height = psLINFBInfo->var.yres;
+	if ((psLINFBInfo->var.rotate == FB_ROTATE_CW)
+		|| (psLINFBInfo->var.rotate == FB_ROTATE_CCW) ) {
+
+		psPVRFBInfo->ui32Width = psLINFBInfo->var.yres;
+		psPVRFBInfo->ui32Height = psLINFBInfo->var.xres;
+
+	} else {
+		psPVRFBInfo->ui32Width = psLINFBInfo->var.xres;
+		psPVRFBInfo->ui32Height = psLINFBInfo->var.yres;
+	}
 	psPVRFBInfo->ui32ByteStride =  psLINFBInfo->fix.line_length;
 	psPVRFBInfo->ui32FBSize = FBSize;
 	psPVRFBInfo->ui32BufferSize = psPVRFBInfo->ui32Height * psPVRFBInfo->ui32ByteStride;