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.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.c')
-rw-r--r-- | apps/plugins/clock/clock_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/clock/clock_draw.c b/apps/plugins/clock/clock_draw.c index 411a7f1545..ce5006d46d 100644 --- a/apps/plugins/clock/clock_draw.c +++ b/apps/plugins/clock/clock_draw.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "clock_draw_binary.h" | 26 | #include "clock_draw_binary.h" |
27 | #include "clock_settings.h" | 27 | #include "clock_settings.h" |
28 | 28 | ||
29 | void black_background(struct screen* display){ | 29 | static void black_background(struct screen* display){ |
30 | #if (LCD_DEPTH > 1) || (defined(LCD_REMOTE_DEPTH) && (LCD_REMOTE_DEPTH > 1)) | 30 | #if (LCD_DEPTH > 1) || (defined(LCD_REMOTE_DEPTH) && (LCD_REMOTE_DEPTH > 1)) |
31 | if(display->depth>1){ | 31 | if(display->depth>1){ |
32 | display->set_background(LCD_BLACK); | 32 | display->set_background(LCD_BLACK); |
@@ -39,7 +39,7 @@ void black_background(struct screen* display){ | |||
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | void white_background(struct screen* display){ | 42 | static void white_background(struct screen* display){ |
43 | #if (LCD_DEPTH > 1) || (defined(LCD_REMOTE_DEPTH) && (LCD_REMOTE_DEPTH > 1)) | 43 | #if (LCD_DEPTH > 1) || (defined(LCD_REMOTE_DEPTH) && (LCD_REMOTE_DEPTH > 1)) |
44 | if(display->depth>1){ | 44 | if(display->depth>1){ |
45 | #if defined(HAVE_LCD_COLOR) | 45 | #if defined(HAVE_LCD_COLOR) |
@@ -53,18 +53,18 @@ void white_background(struct screen* display){ | |||
53 | display->clear_display(); | 53 | display->clear_display(); |
54 | } | 54 | } |
55 | 55 | ||
56 | bool skin_require_black_background(int mode, int skin){ | 56 | static bool skin_require_black_background(int mode, int skin){ |
57 | return((mode==BINARY && skin==2) || (mode==DIGITAL && skin==1 )); | 57 | return((mode==BINARY && skin==2) || (mode==DIGITAL && skin==1 )); |
58 | } | 58 | } |
59 | 59 | ||
60 | void skin_set_background(struct screen* display, int mode, int skin){ | 60 | static void skin_set_background(struct screen* display, int mode, int skin){ |
61 | if(skin_require_black_background(mode, skin) ) | 61 | if(skin_require_black_background(mode, skin) ) |
62 | black_background(display); | 62 | black_background(display); |
63 | else | 63 | else |
64 | white_background(display); | 64 | white_background(display); |
65 | } | 65 | } |
66 | 66 | ||
67 | void skin_restore_background(struct screen* display, int mode, int skin){ | 67 | static void skin_restore_background(struct screen* display, int mode, int skin){ |
68 | if(skin_require_black_background(mode, skin) ) | 68 | if(skin_require_black_background(mode, skin) ) |
69 | white_background(display); | 69 | white_background(display); |
70 | } | 70 | } |