MX507: the method to rotate display in Android

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MX507: the method to rotate display in Android

1,124 次查看
GraceH
Senior Contributor II

MX507 has no GPU, if rotate display with "setprop ro.sf.hwrotation 90", line shift issue will occur because of software renderer of OpenGL.

We can use the rotate property of EPDC driver to rotate display.

The patch is as below.

diff --git a/libgralloc/framebuffer.cpp b/libgralloc/framebuffer.cpp

@@ -1064,6 +1066,7 @@ int mapFrameBufferLocked(struct private_module_t* module)

     info.bits_per_pixel = 16;

     info.grayscale = 0;

     info.yoffset = 0;

+     info.rotate = FB_ROTATE_CCW;

#endif

     uint32_t flags = PAGE_FLIP;

标签 (2)
0 回复数