summaryrefslogtreecommitdiff
path: root/apps/plugins/clock/clock_draw_analog.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/clock/clock_draw_analog.c')
-rw-r--r--apps/plugins/clock/clock_draw_analog.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/clock/clock_draw_analog.c b/apps/plugins/clock/clock_draw_analog.c
index b8ec308eed..bda7241d33 100644
--- a/apps/plugins/clock/clock_draw_analog.c
+++ b/apps/plugins/clock/clock_draw_analog.c
@@ -37,7 +37,7 @@
37#define SECOND_ANGLE(second) (6 * (second)) 37#define SECOND_ANGLE(second) (6 * (second))
38 38
39/* Note that the given angle's origin is midday and not 3 o'clock */ 39/* Note that the given angle's origin is midday and not 3 o'clock */
40void polar_to_cartesian(int a, int r, int* x, int* y) 40static void polar_to_cartesian(int a, int r, int* x, int* y)
41{ 41{
42#if CONFIG_LCD == LCD_SSD1815 42#if CONFIG_LCD == LCD_SSD1815
43 /* Correct non-square pixel aspect of archos recorder LCD */ 43 /* Correct non-square pixel aspect of archos recorder LCD */
@@ -48,7 +48,7 @@ void polar_to_cartesian(int a, int r, int* x, int* y)
48 *y = (fp14_sin(a-90) * r) >> 14; 48 *y = (fp14_sin(a-90) * r) >> 14;
49} 49}
50 50
51void polar_to_cartesian_screen_centered(struct screen * display, 51static void polar_to_cartesian_screen_centered(struct screen * display,
52 int a, int r, int* x, int* y) 52 int a, int r, int* x, int* y)
53{ 53{
54 polar_to_cartesian(a, r, x, y); 54 polar_to_cartesian(a, r, x, y);
@@ -56,7 +56,7 @@ void polar_to_cartesian_screen_centered(struct screen * display,
56 *y+=display->getheight()/2; 56 *y+=display->getheight()/2;
57} 57}
58 58
59void angle_to_square(int square_width, int square_height, 59static void angle_to_square(int square_width, int square_height,
60 int a, int* x, int* y) 60 int a, int* x, int* y)
61{ 61{
62 a = (a+360-90)%360; 62 a = (a+360-90)%360;
@@ -82,7 +82,7 @@ void angle_to_square(int square_width, int square_height,
82 } 82 }
83} 83}
84 84
85void angle_to_square_screen_centered(struct screen * display, 85static void angle_to_square_screen_centered(struct screen * display,
86 int square_width, int square_height, 86 int square_width, int square_height,
87 int a, int* x, int* y) 87 int a, int* x, int* y)
88{ 88{
@@ -91,7 +91,7 @@ void angle_to_square_screen_centered(struct screen * display,
91 *y+=display->getheight()/2; 91 *y+=display->getheight()/2;
92} 92}
93 93
94void draw_hand(struct screen* display, int angle, 94static void draw_hand(struct screen* display, int angle,
95 int radius, int thickness, bool round) 95 int radius, int thickness, bool round)
96{ 96{
97 int x1, y1; /* the longest */ 97 int x1, y1; /* the longest */
@@ -115,7 +115,7 @@ void draw_hand(struct screen* display, int angle,
115 rb->lcd_drawline(x1, y1, x3, y3); 115 rb->lcd_drawline(x1, y1, x3, y3);
116} 116}
117 117
118void draw_hands(struct screen* display, int hour, int minute, int second, 118static void draw_hands(struct screen* display, int hour, int minute, int second,
119 int thickness, bool round, bool draw_seconds) 119 int thickness, bool round, bool draw_seconds)
120{ 120{
121 if(draw_seconds){ 121 if(draw_seconds){
@@ -128,7 +128,7 @@ void draw_hands(struct screen* display, int hour, int minute, int second,
128 ANALOG_HOUR_RADIUS(display, round), thickness+2, round); 128 ANALOG_HOUR_RADIUS(display, round), thickness+2, round);
129} 129}
130 130
131void draw_counter(struct screen* display, struct counter* counter) 131static void draw_counter(struct screen* display, struct counter* counter)
132{ 132{
133 char buffer[10]; 133 char buffer[10];
134 int second_str_w, hour_str_w, str_h; 134 int second_str_w, hour_str_w, str_h;
@@ -150,7 +150,7 @@ void draw_counter(struct screen* display, struct counter* counter)
150 display->getheight()-str_h); 150 display->getheight()-str_h);
151} 151}
152 152
153void draw_date(struct screen* display, struct time* time, int date_format) 153static void draw_date(struct screen* display, struct time* time, int date_format)
154{ 154{
155 char buffer[10]; 155 char buffer[10];
156 int year_str_w, monthday_str_w, str_h; 156 int year_str_w, monthday_str_w, str_h;
@@ -176,7 +176,7 @@ void draw_date(struct screen* display, struct time* time, int date_format)
176 display->getheight()-monthday_line*str_h); 176 display->getheight()-monthday_line*str_h);
177} 177}
178 178
179void draw_border(struct screen* display, int skin) 179static void draw_border(struct screen* display, int skin)
180{ 180{
181 /* Draws square dots every 5 minutes */ 181 /* Draws square dots every 5 minutes */
182 int i; 182 int i;
@@ -197,7 +197,7 @@ void draw_border(struct screen* display, int skin)
197 } 197 }
198} 198}
199 199
200void draw_hour(struct screen* display, struct time* time, 200static void draw_hour(struct screen* display, struct time* time,
201 bool show_seconds, int skin) 201 bool show_seconds, int skin)
202{ 202{
203 int hour=time->hour; 203 int hour=time->hour;
@@ -220,7 +220,7 @@ void draw_hour(struct screen* display, struct time* time,
220 0, skin, show_seconds); 220 0, skin, show_seconds);
221} 221}
222 222
223void draw_center_cover(struct screen* display) 223static void draw_center_cover(struct screen* display)
224{ 224{
225 display->hline((display->getwidth()/2)-1, 225 display->hline((display->getwidth()/2)-1,
226 (display->getwidth()/2)+1, (display->getheight()/2)+3); 226 (display->getwidth()/2)+1, (display->getheight()/2)+3);