关机充电图标

mediatek\custom\common\uboot\logo下的

update

 

mediatek\custom\common\uboot\logo\tool\

两个工具

bmp_to_raw    zpipe

 

 

cust_display.h

#define BAR_LEFT            (215)

#define BAR_TOP             (156)

#define BAR_RIGHT           (265)

#define BAR_BOTTOM          (278)

 

#define BAR_OCCUPIED_COLOR  (0x07E0)    // Green

#define BAR_EMPTY_COLOR     (0xFFFF)    // White

#define BAR_BG_COLOR        (0x0000)    // Black

 

 

mt6575_logo.c

cust_show_battery_capacity

    // Fill Occupied Color

   

    mt65xx_disp_draw_prog_bar(direct,

                              bar_rect.left + 1, bar_rect.top + 1,

                              bar_rect.right, bar_rect.bottom,

                              bar_occupied_color, bar_bg_color,

                              0, VOLTAGE_SCALE, capacity_grids);

   

    // Fill Empty Color

   

    mt65xx_disp_draw_prog_bar(direct,

                              bar_rect.left + 1, bar_rect.top + 1,

                              bar_rect.right, bar_rect.bottom,

                              bar_empty_color, bar_bg_color,

                              capacity_grids, VOLTAGE_SCALE,

                              VOLTAGE_SCALE - capacity_grids);

bootlogo.c

static RECT bar_rect = {BAR_LEFT, BAR_TOP, BAR_RIGHT, BAR_BOTTOM}

 

alps\mediatek\source\external\mhal\src\custom\common\uboot\inc\cust_display.h

#define BAR_LEFT            (130)

#define BAR_TOP             (127)

#define BAR_RIGHT           (190)

#define BAR_BOTTOM          (247);

你可能感兴趣的:(android,android,android,关机充电图标)