完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
0.dts190x1080 -- diff.git1.build.prop 中添加的
构图属性 下面: persist.sy***uffer.main=1920x600@60 2.hardware/hwcomposer/hwcomposer 合入下面修改: diff/hwcomposer .cpp b/hwcomposer.cpp 索引 0fd2177..3ad13a9 100755 --- a/hwcomposer.cpp +++ b/hwcomposer.cpp @@ -3498,8 +3498,10 @@ static int hwc_get_display_configs(struct hwc_composer_device_1 *dev, char framebuffer_size[PROPERTY_VALUE_MAX]; uint32_t width = 0, height = 0, vrefresh = 0; + if (display == HWC_DISPLAY_PRIMARY) property_get("persist.sys.framebuffer.main", framebuffer_size, "use_baseparameter"); - + else if (显示 == HWC_DISPLAY_EXTERNAL) + property_get("persist.sys.framebuffer.aux", framebuffer_size, "use_baseparameter"); /* * 如果未设置 framebuffer_size,则通过 libin 从 baseparameter 获取它 */ @@ -2298,7 +2301,8 @@ static int hwc_prepare(hwc_composer_device_1_t *dev, size_t num_displays, hd->rel_yres = mode.v_display(); hd->v_total = mode.v_total(); hd->w_scale = (float)mode.h_display() / hd->framebuffer_width; - hd->h_scale = (float)mode.v_display() / hd->framebuffer_height; + //hd->h_scale = (float)mode.v_display() / hd->framebuffer_height; + hd->h_scale = 1.0; int fbSize = hd->framebuffer_width * hd->framebuffer_height; //获取显示平面大小 std::vector @@ -3638,7 +3647,8 @@ static int hwc_set_active_config(struct hwc_composer_device_1 *dev, int display, return -ENOENT; } hd->w_scale = (float)mode.h_display() / hd->framebuffer_width; - hd ->h_scale = (float)mode.v_display() / hd->framebuffer_height; + //hd->h_scale = (float)mode.v_display() / hd->framebuffer_height; + hd->h_scale = 1.0; c- >set_current_mode(mode); ctx->drm.UpdateDisplayRoute(); |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
Onenet云网关方案应用--基于米尔瑞芯微RK3576开发板
1143 浏览 0 评论
【幸狐Omni3576边缘计算套件试用体验】Redis最新8.0.2版本源码安装及性能测试
1279 浏览 0 评论
2030 浏览 0 评论
RK3576 vs RK3588:为何越来越多的开发者转向RK3576?
5177 浏览 0 评论
【幸狐Omni3576边缘计算套件试用体验】幸狐Omni3576开发板移植YOLOV10和推理测试
886 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-6-22 23:50 , Processed in 0.682873 second(s), Total 71, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191