diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-12-31 20:29:08 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-12-31 20:29:08 +0000 |
commit | ba03cb4aea212553f47a9da672fdd897e9f2e620 (patch) | |
tree | 27a03c72fa0a4416ad32c338947234f46aa7d296 /apps/plugins/clock/clock_draw_analog.c | |
parent | c003d6c3328a59d071c2497b72b3e926be086530 (diff) | |
download | rockbox-ba03cb4aea212553f47a9da672fdd897e9f2e620.tar.gz rockbox-ba03cb4aea212553f47a9da672fdd897e9f2e620.zip |
Make local functions static in clock and chessbox plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31505 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clock/clock_draw_analog.c')
-rw-r--r-- | apps/plugins/clock/clock_draw_analog.c | 22 |
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 */ |
40 | void polar_to_cartesian(int a, int r, int* x, int* y) | 40 | static 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 | ||
51 | void polar_to_cartesian_screen_centered(struct screen * display, | 51 | static 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 | ||
59 | void angle_to_square(int square_width, int square_height, | 59 | static 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 | ||
85 | void angle_to_square_screen_centered(struct screen * display, | 85 | static 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 | ||
94 | void draw_hand(struct screen* display, int angle, | 94 | static 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 | ||
118 | void draw_hands(struct screen* display, int hour, int minute, int second, | 118 | static 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 | ||
131 | void draw_counter(struct screen* display, struct counter* counter) | 131 | static 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 | ||
153 | void draw_date(struct screen* display, struct time* time, int date_format) | 153 | static 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 | ||
179 | void draw_border(struct screen* display, int skin) | 179 | static 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 | ||
200 | void draw_hour(struct screen* display, struct time* time, | 200 | static 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 | ||
223 | void draw_center_cover(struct screen* display) | 223 | static 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); |