完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
diff --git a/frameworks/native/services/inputflinger/InputReader.cpp b/frameworks/native/services/inputflinger/InputReader.cpp
旧模式 100644 新模式 100755 索引 fa81a10..5dcf5f7 --- a/frameworks/ native/services/inputflinger/InputReader.cpp +++ b/frameworks/native/services/inputflinger/InputReader.cpp @@ -3500,7 +3500,27 @@ void TouchInputMapper::configureSurface(nsecs_t when, bool* outResetNeeded) { bool viewportChanged = mViewport != newViewport; if (viewportChanged) { mViewport = newViewport; - + char buffer_orientation[PROP_VALUE_MAX]; + memset(buffer_orientation, 0, sizeof(buffer_orientation)); + property_get(“persist.sys.rotation.einit”, buffer_orientation, “0”); + int cmpRet = atoi(buffer_orientation); + ALOGI(“persist.sys.rotation.einit~~~~~~~~~~~~~~ = %d”,cmpRet); + if (cmpRet == 0) + { + mViewport.orientation = DISPLAY_ORIENTATION_0; + } + else if(cmpRet == 1) + { + mViewport.orientation = DISPLAY_ORIENTATION_90; + } + else if(cmpRet == 2) + { + mViewport.orientation = DISPLAY_ORIENTATION_180; + } + else if(cmpRet == 3) + { + mViewport.orientation = DISPLAY_ORIENTATION_270; + } if (mDeviceMode == DEVICE_MODE_DIRECT || mDeviceMode == DEVICE_MODE_POINTER) { // 将旋转的视口转换为自然表面坐标。 int32_t naturalLogicalWidth, naturalLogicalHeight; diff --git a/device/rockchip/rk3288/system.prop b/device/rockchip/rk3288/system.prop index 2831458..eb319af 100755 --- a/device/rockchip/rk3288/system.prop +++ b /device/rockchip/rk3288/system.prop @@ -28,8 +28,7 @@ sys.wallpaper.rgb565=0 sf.power.control=2073600 sys.rkadb.root=0 ro.sf.fakerotation=false +ro.sf.hwrotation=90 ro.rk.MassStorage=false ro.rk.systembar.voiceicon=true ro.rk.systembar.tabletUI=false @@ -53,5 +52,4 @@ sys.hwc.device.extend=DSI ro.sys.rotation.sensor=false persist.sys.rotation.efull=true # 0-0 1-90 2-180 3-270 +persist.sys.rotation.einit =1 文件末尾没有换行符 |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1876 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
2341 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
5145 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-20 13:23 , Processed in 0.381046 second(s), Total 42, Slave 36 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号