diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 13:15:16 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-07-08 13:15:16 +0000 |
commit | ec9bea42a8ac061aa3278d66d6032602802b0e28 (patch) | |
tree | d193f797258f83ac450cb13e8eedb5cdb37a7802 /apps | |
parent | 244106176447effe0330ef194ad93ccaadf589ff (diff) | |
download | rockbox-ec9bea42a8ac061aa3278d66d6032602802b0e28.tar.gz rockbox-ec9bea42a8ac061aa3278d66d6032602802b0e28.zip |
Removed progressbar() and a few tables as well
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4855 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/clock.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c index 0ce21455c2..8e392e9a81 100644 --- a/apps/plugins/clock.c +++ b/apps/plugins/clock.c | |||
@@ -137,20 +137,6 @@ static unsigned char yhour_full[] = { | |||
137 | 52,52,52,52,52,52,52,52,52,52,52,46,41,37,34,32,30,27,23,18,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,18,23,27,30,32,34,37,41,46,52,52,52,52,52,52,52,52,52,52 | 137 | 52,52,52,52,52,52,52,52,52,52,52,46,41,37,34,32,30,27,23,18,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,18,23,27,30,32,34,37,41,46,52,52,52,52,52,52,52,52,52,52 |
138 | }; | 138 | }; |
139 | 139 | ||
140 | /************************************ | ||
141 | * Used for second-progressbar | ||
142 | ************************************/ | ||
143 | static unsigned char seconds100[] = { | ||
144 | 1,2,4,5,7,8,11,13,14,16,17,19,22,23,25,26,28,29,32,34,35,37,38,39,42,43,45,46,48,49,51,52,54,55,57,58,60,61,63,64,66,67,69,72,73,75,76,78,79,82,84,85,87,88,91,93,94,96,97,99 | ||
145 | }; | ||
146 | |||
147 | /************************************ | ||
148 | * Used for seconds-inverse mode | ||
149 | ************************************/ | ||
150 | static unsigned char seconds112[] = { | ||
151 | 1,2,4,6,8,10,12,14,16,18,20,21,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,91,92,94,96,98,100,102,104,106,108,110,111,112 | ||
152 | }; | ||
153 | |||
154 | /**************************** | 140 | /**************************** |
155 | * BITMAPS | 141 | * BITMAPS |
156 | ****************************/ | 142 | ****************************/ |
@@ -1811,7 +1797,7 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second) | |||
1811 | 1797 | ||
1812 | struct tm* current_time = rb->get_time(); | 1798 | struct tm* current_time = rb->get_time(); |
1813 | 1799 | ||
1814 | int fill = seconds112[second]; | 1800 | int fill = LCD_WIDTH * second / 60; |
1815 | 1801 | ||
1816 | char moday[8]; | 1802 | char moday[8]; |
1817 | char dateyr[6]; | 1803 | char dateyr[6]; |
@@ -1895,7 +1881,7 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second) | |||
1895 | /* Second progressbar */ | 1881 | /* Second progressbar */ |
1896 | if(settings.digital_seconds == 2) | 1882 | if(settings.digital_seconds == 2) |
1897 | { | 1883 | { |
1898 | rb->progressbar(0, 0, 112, 4, seconds100[second], 0); | 1884 | rb->scrollbar(0, 0, 112, 4, 60, 0, second, HORIZONTAL); |
1899 | } | 1885 | } |
1900 | 1886 | ||
1901 | /* Invert the whole LCD as the seconds go */ | 1887 | /* Invert the whole LCD as the seconds go */ |
@@ -1931,7 +1917,7 @@ void draw_extras(int year, int day, int month, int hour, int minute, int second) | |||
1931 | /* Second progressbar */ | 1917 | /* Second progressbar */ |
1932 | if(settings.lcd_seconds == 2) | 1918 | if(settings.lcd_seconds == 2) |
1933 | { | 1919 | { |
1934 | rb->progressbar(0, 0, 112, 4, seconds100[second], 0); | 1920 | rb->scrollbar(0, 0, 112, 4, 60, 0, second, HORIZONTAL); |
1935 | } | 1921 | } |
1936 | 1922 | ||
1937 | /* Invert the whole LCD as the seconds go */ | 1923 | /* Invert the whole LCD as the seconds go */ |