mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Clock plugin : centered the binary plugin, moved the AM/PM mark to the right on digital display, reduced the thickness of the pseudo antialiasing for analog clock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14181 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
75e2f19de3
commit
14d276121a
4 changed files with 16 additions and 13 deletions
|
@ -43,9 +43,11 @@ void binary_clock_draw(struct screen* display, struct time* time, int skin){
|
|||
char buffer[9];
|
||||
int i;
|
||||
const struct picture* binary_bitmaps = &(binary_skin[skin][display->screen_type]);
|
||||
int y_offset=(display->height-(binary_bitmaps->height*3))/2;
|
||||
int x_offset=(display->width-(binary_bitmaps->width*6))/2;
|
||||
for(i=0;i<3;i++){
|
||||
print_binary(buffer, lines_values[i], 6);
|
||||
draw_string(display, binary_bitmaps, buffer, 0,
|
||||
binary_bitmaps->height*i);
|
||||
draw_string(display, binary_bitmaps, buffer, x_offset,
|
||||
binary_bitmaps->height*i+y_offset);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue