Subversion Repositories freemyipod

Rev

Rev 833 | Rev 843 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 833 Rev 838
Line 60... Line 60...
60
    ui->blendcolor(24, 1, 0xcf7f0000, framebuf, 4, 11, 320, framebuf, 4, 11, 320);
60
    ui->blendcolor(24, 1, 0xcf7f0000, framebuf, 4, 11, 320, framebuf, 4, 11, 320);
61
    // left line
61
    // left line
62
    ui->blendcolor(1, 6, 0xcf7f0000, framebuf, 4, 5, 320, framebuf, 4, 5, 320);
62
    ui->blendcolor(1, 6, 0xcf7f0000, framebuf, 4, 5, 320, framebuf, 4, 5, 320);
63
    // right line
63
    // right line
64
    ui->blendcolor(1, 6, 0xcf7f0000, framebuf, 27, 5, 320, framebuf, 27, 5, 320);
64
    ui->blendcolor(1, 6, 0xcf7f0000, framebuf, 27, 5, 320, framebuf, 27, 5, 320);
65
    // tip - right
65
    // top - right
66
    ui->blendcolor(1, 4, 0xcf7f0000, framebuf, 28, 6, 320, framebuf, 28, 6, 320);
66
    ui->blendcolor(1, 4, 0xcf7f0000, framebuf, 28, 6, 320, framebuf, 28, 6, 320);
67
    unsigned int batt_level = 22 * read_battery_mwh_current(0) / read_battery_mwh_full(0);
67
    unsigned int batt_level = 22 * read_battery_mwh_current(0) / read_battery_mwh_full(0);
68
    // remaining battery level
68
    // remaining battery level
69
    ui->blendcolor(batt_level, 6, 0x7f3f0000, framebuf, 5, 5, 320, framebuf, 5, 5, 320);
69
    ui->blendcolor(batt_level, 6, 0x7fff7f7f, framebuf, 5, 5, 320, framebuf, 5, 5, 320);
70
    // background of the rest space
70
    // background of the rest space
71
    ui->blendcolor(22 - batt_level, 6, 0x3f7f0000, framebuf, 5 + batt_level,
71
    ui->blendcolor(22 - batt_level, 6, 0x7f7f0000, framebuf, 5 + batt_level,
72
                   5, 320, framebuf, 5 + batt_level, 5, 320);
72
                   5, 320, framebuf, 5 + batt_level, 5, 320);
73
    render_snow();
73
    render_snow();
74
    return false;
74
    return false;
75
}
75
}
76
 
76