修改android 默认横竖屏

device/..产品../ProjectConfig.mk下有个宏,修改这个宏即可。

如:device/wisky/wisky8735_3g_h/ProjectConfig.mk

MTK_LCM_PHYSICAL_ROTATION = 901

修改这个宏,可能会影响其他地方。



=====转======

修改recovery代码,用固定的方向。

bootable/recovery/minui/graphics_fbdev.c
若要旋转90度, 将return改为: return 1;
// Read configuration from MTK_LCM_PHYSICAL_ROTATION
static int rotate_config(GRSurface *gr_draw)
{
    if (rotate_index<0)
    {   
        if (gr_draw->pixel_bytes != 4) rotate_index=0; // support 4 bytes pixel only
        else if (0 == strncmp(MTK_LCM_PHYSICAL_ROTATION, "90", 2)) rotate_index=1;
        else if (0 == strncmp(MTK_LCM_PHYSICAL_ROTATION, "180", 3)) rotate_index=2;
        else if (0 == strncmp(MTK_LCM_PHYSICAL_ROTATION, "270", 3)) rotate_index=3;
        else rotate_index=0;
        printf("[graphics] rotate_config %d %s\n", rotate_index, MTK_LCM_PHYSICAL_ROTATION);
    }   
    return rotate_index;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值