diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2007-08-04 03:01:46 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2007-08-04 03:01:46 +0000 |
commit | 93b2f9fd447b73fff736d71826880ef9ac64bd94 (patch) | |
tree | 1a4f54016c312738d66fb9dd2348ea0ef14f1255 /apps/plugins/clock/clock_bitmaps.c | |
parent | ffbbc60f38ddc8aeadc9cea1102077e22ca84a1a (diff) | |
download | rockbox-93b2f9fd447b73fff736d71826880ef9ac64bd94.tar.gz rockbox-93b2f9fd447b73fff736d71826880ef9ac64bd94.zip |
Rewrote the clock plugin in a cleaner and more modular way so that it can scale on remote screens. Use left-right keys to change the type of clock displayed (analogic, digital, binary) and up/downto change the look of the clock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14174 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/clock/clock_bitmaps.c')
-rw-r--r-- | apps/plugins/clock/clock_bitmaps.c | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/apps/plugins/clock/clock_bitmaps.c b/apps/plugins/clock/clock_bitmaps.c new file mode 100644 index 0000000000..c8550d180a --- /dev/null +++ b/apps/plugins/clock/clock_bitmaps.c | |||
@@ -0,0 +1,105 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id: jackpot.c 14034 2007-07-28 05:42:55Z kevin $ | ||
9 | * | ||
10 | * Copyright (C) 2007 Copyright Kévin Ferrare | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | |||
21 | #include "clock_bitmaps.h" | ||
22 | |||
23 | /* bitmaps */ | ||
24 | #include "clock_binary.h" | ||
25 | #include "clock_digits.h" | ||
26 | #include "clock_smalldigits.h" | ||
27 | #include "clock_segments.h" | ||
28 | #include "clock_smallsegments.h" | ||
29 | |||
30 | #include "clock_logo.h" | ||
31 | #include "clock_messages.h" | ||
32 | |||
33 | #if NB_SCREENS==2 | ||
34 | #include "clock_binary_remote.h" | ||
35 | #include "clock_digits_remote.h" | ||
36 | #include "clock_smalldigits_remote.h" | ||
37 | #include "clock_segments_remote.h" | ||
38 | #include "clock_smallsegments_remote.h" | ||
39 | |||
40 | #include "clock_logo_remote.h" | ||
41 | #include "clock_messages_remote.h" | ||
42 | |||
43 | #endif | ||
44 | |||
45 | |||
46 | const struct picture logos[]={ | ||
47 | {clock_logo, BMPWIDTH_clock_logo, BMPHEIGHT_clock_logo}, | ||
48 | #if NB_SCREENS==2 | ||
49 | {clock_logo_remote,BMPWIDTH_clock_logo_remote,BMPHEIGHT_clock_logo_remote} | ||
50 | #endif | ||
51 | }; | ||
52 | |||
53 | const struct picture messages[]={ | ||
54 | {clock_messages,BMPWIDTH_clock_messages, | ||
55 | BMPHEIGHT_clock_messages/6}, | ||
56 | #if NB_SCREENS==2 | ||
57 | {clock_messages_remote,BMPWIDTH_clock_messages_remote, | ||
58 | BMPHEIGHT_clock_messages_remote/6} | ||
59 | #endif | ||
60 | }; | ||
61 | |||
62 | const struct picture binary[]={ | ||
63 | {clock_binary, | ||
64 | BMPWIDTH_clock_binary, BMPHEIGHT_clock_binary/2 }, | ||
65 | #if NB_SCREENS==2 | ||
66 | {clock_binary_remote, | ||
67 | BMPWIDTH_clock_binary_remote,BMPHEIGHT_clock_binary_remote/2} | ||
68 | #endif | ||
69 | }; | ||
70 | |||
71 | const struct picture digits[]={ | ||
72 | {clock_digits, | ||
73 | BMPWIDTH_clock_digits, BMPHEIGHT_clock_digits/13 }, | ||
74 | #if NB_SCREENS==2 | ||
75 | {clock_digits_remote, | ||
76 | BMPWIDTH_clock_digits_remote,BMPHEIGHT_clock_digits_remote/13} | ||
77 | #endif | ||
78 | }; | ||
79 | |||
80 | const struct picture smalldigits[]={ | ||
81 | {clock_smalldigits, | ||
82 | BMPWIDTH_clock_smalldigits, BMPHEIGHT_clock_smalldigits/13 }, | ||
83 | #if NB_SCREENS==2 | ||
84 | {clock_smalldigits_remote, | ||
85 | BMPWIDTH_clock_smalldigits_remote,BMPHEIGHT_clock_smalldigits_remote/13} | ||
86 | #endif | ||
87 | }; | ||
88 | |||
89 | const struct picture segments[]={ | ||
90 | {clock_segments, | ||
91 | BMPWIDTH_clock_segments, BMPHEIGHT_clock_segments/13 }, | ||
92 | #if NB_SCREENS==2 | ||
93 | {clock_segments_remote, | ||
94 | BMPWIDTH_clock_segments_remote,BMPHEIGHT_clock_segments_remote/13} | ||
95 | #endif | ||
96 | }; | ||
97 | |||
98 | const struct picture smallsegments[]={ | ||
99 | {clock_smallsegments, | ||
100 | BMPWIDTH_clock_smallsegments, BMPHEIGHT_clock_smallsegments/13 }, | ||
101 | #if NB_SCREENS==2 | ||
102 | {clock_smallsegments_remote, | ||
103 | BMPWIDTH_clock_smallsegments_remote,BMPHEIGHT_clock_smallsegments_remote/13} | ||
104 | #endif | ||
105 | }; | ||