RK3288安卓5.1系统设置中屏幕缩放操作无效,请问如何修改源码解决?
主板:fireflyRK3288开发板系统:Android5.1
源码包: firefly-rk3288_android5.1_git_20170224.tar.gz
问题:VGA接口显示下,屏幕缩放无效,HDMI接口下,屏幕缩放有效,但是重启失效,请问各路大神,如何解决,或者改哪些源码,请指点一二,谢谢! 各位大神请帮忙看下 system/displayd/ScreenScaleManager.cpp
if (property_get(PROPETY_OVERSCAN_MAX, property_max, 0) > 0)
max = atoi(property_max);
- default_scale = max*0.95;
+// default_scale = max*0.95;
int fd = open(MainDisplaySysNode, O_RDWR, 0);
if(fd > 0) {
@ -86,7 +86,7 @ ScreenScaleManager::ScreenScaleManager() {
}
memset(property, 0, PROPERTY_VALUE_MAX);
sprintf(property, "overscan %d,%d,%d,%d", overscan_left, overscan_top, overscan_right, overscan_bottom);
- // write(fd, property, strlen(property));
+ write(fd, property, strlen(property));
close(fd);
property_set(PROPETY_OVERSCAN_AUX, property);
} 试试我上面弄的 Alexpang 发表于 2017-8-9 10:12
system/displayd/ScreenScaleManager.cpp
if (property_get(PROPETY_OVERSCAN_MAX, property_max, 0) > 0) ...
多谢@Alexpang
页:
[1]