1.vendor/sprd/proprietories-source/charge/images/
修改资源文件图片方向,选择所有右键选择到合适方向,我这里是顺时针转90度
2.vendor/sprd/proprietories-source/charge/ui.c
draw_text_picture 方法调整电量百分比坐标
- --- a/vendor/sprd/proprietories-source/charge/ui.c
- +++ b/vendor/sprd/proprietories-source/charge/ui.c
- @@ -239,11 +239,16 @@ static void draw_text_picture(int level)
- bit = level%10;
-
-
- if(hundred == 1)
- - gr_blit(gNumber[hundred],0,0,width,height,dx,dy);
- + // gr_blit(gNumber[hundred],0,0,width,height,dx,dy);
- + gr_blit(gNumber[hundred],0,0,width,height,dy,dx*1.5); //yim modify
- if(level >= 10)
- - gr_blit(gNumber[ten],0,0,width,height,dx + width,dy);
- - gr_blit(gNumber[bit],0,0,width,height,dx + width*2 ,dy);
- - gr_blit(gPercent,0,0,capacity_w,catpcity_h,dx + width*3,dy);
- + // gr_blit(gNumber[ten],0,0,width,height,dx + width,dy);
- + //gr_blit(gNumber[bit],0,0,width,height,dx + width*2 ,dy);
- + //gr_blit(gPercent,0,0,capacity_w,catpcity_h,dx + width*3,dy);
- +
- + gr_blit(gNumber[ten],0,0,width,height,dy,dx*1.5 + width/2); //yim modify
- + gr_blit(gNumber[bit],0,0,width,height,dy,dx*1.5 + width); //yim modify
- + gr_blit(gPercent,0,0,capacity_w,catpcity_h,dy,dx*1.5 + width*1.5); //yim modify
-
-
- }