diff options
| author | Kevin Ferrare <kevin@rockbox.org> | 2007-08-04 14:50:28 +0000 |
|---|---|---|
| committer | Kevin Ferrare <kevin@rockbox.org> | 2007-08-04 14:50:28 +0000 |
| commit | 14d276121af7aa458553f49500c802c87f23bd69 (patch) | |
| tree | 41a86c0bce9379f96c23900fc91c82d037766bde /apps/plugins/clock/clock_draw_binary.c | |
| parent | 75e2f19de334bcbfa9d15062674d8efcb0eb2a64 (diff) | |
| download | rockbox-14d276121af7aa458553f49500c802c87f23bd69.zip rockbox-14d276121af7aa458553f49500c802c87f23bd69.tar.gz rockbox-14d276121af7aa458553f49500c802c87f23bd69.tar.bz2 rockbox-14d276121af7aa458553f49500c802c87f23bd69.tar.xz | |
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
Diffstat (limited to 'apps/plugins/clock/clock_draw_binary.c')
| -rw-r--r-- | apps/plugins/clock/clock_draw_binary.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/clock/clock_draw_binary.c b/apps/plugins/clock/clock_draw_binary.c index 5bc84f1..b92118d 100644 --- a/apps/plugins/clock/clock_draw_binary.c +++ b/apps/plugins/clock/clock_draw_binary.c @@ -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); } } |