MX507: the method to rotate display in Android

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MX507: the method to rotate display in Android

1,123件の閲覧回数
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 返答(返信)