diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-11-19 14:11:42 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-11-19 14:11:42 +0000 |
| commit | 6288523cfee31a474435ce3445e67733f532d916 (patch) | |
| tree | 1fe3350c1d27a0144492d64792cea78f6a833c73 /apps/plugins/clock.c | |
| parent | 687328b7773ae917574841fa63326aa2bec264d6 (diff) | |
| download | rockbox-6288523cfee31a474435ce3445e67733f532d916.zip rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.gz rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.bz2 rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.xz | |
* Move checkbox to plugin api (core never uses it)
* replace the last of the scrollbar() calls with gui_scrollbar_draw()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clock.c')
| -rw-r--r-- | apps/plugins/clock.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c index 0323442..6a1d306 100644 --- a/apps/plugins/clock.c +++ b/apps/plugins/clock.c @@ -89,6 +89,7 @@ Original release, featuring analog / digital modes and a few options. *****************************/ #include "plugin.h" #include "time.h" +#include "checkbox.h" #include <pluginbitmaps/clock_logo.h> PLUGIN_HEADER @@ -2386,7 +2387,7 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second) rb->lcd_putsxy((LCDWIDTH/2)-(w/2), 5, buf); } else if(settings.digital[digital_seconds] == 2) /* Second progressbar */ - rb->scrollbar(0, 0, LCD_WIDTH, 4, 60, 0, second, HORIZONTAL); + rb->gui_scrollbar_draw(rb->screens[SCREEN_MAIN],0, 0, LCD_WIDTH, 4, 60, 0, second, HORIZONTAL); else if(settings.digital[digital_seconds] == 3) /* Invert the LCD as seconds pass */ { rb->lcd_set_drawmode(DRMODE_COMPLEMENT); @@ -2417,7 +2418,7 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second) } else if(settings.lcd[lcd_seconds] == 2) /* Second progressbar */ { - rb->scrollbar(0, 0, LCD_WIDTH, 4, 60, 0, second, HORIZONTAL); + rb->gui_scrollbar_draw(rb->screens[SCREEN_MAIN],0, 0, LCD_WIDTH, 4, 60, 0, second, HORIZONTAL); } else if(settings.lcd[lcd_seconds] == 3) /* Invert the LCD as seconds pass */ { @@ -2727,8 +2728,8 @@ void counter_settings(void) rb->lcd_puts(0, 7, "OFF: Return"); /* tell user what mode is selected */ - rb->checkbox(1, 17, 8, 6, counting_up); - rb->checkbox(1, 25, 8, 6, !counting_up); + checkbox(rb,1, 17, 8, 6, counting_up); + checkbox(rb,1, 25, 8, 6, !counting_up); switch(cursorpos) { |