diff options
author | Björn Stenberg <bjorn@haxx.se> | 2004-09-19 21:58:37 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2004-09-19 21:58:37 +0000 |
commit | 6c33c51a4ca9907d23e3154d956fd6781122f492 (patch) | |
tree | f0e598efaf064bb72c33c0a8a2edba4cf9ebb13c /apps/plugins | |
parent | 17f54a40f100a3343a15a431d235699024aa76c8 (diff) | |
download | rockbox-6c33c51a4ca9907d23e3154d956fd6781122f492.tar.gz rockbox-6c33c51a4ca9907d23e3154d956fd6781122f492.zip |
Redesigned the button handling. The code now uses symbolic function defines instead of checking for specific buttons. This makes it easier to add support for new devices with different button layouts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5091 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/calendar.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c index f3ee8d82db..b501115618 100644 --- a/apps/plugins/calendar.c +++ b/apps/plugins/calendar.c | |||
@@ -71,6 +71,8 @@ static void calendar_init(struct today *today, struct shown *shown) | |||
71 | int w,h; | 71 | int w,h; |
72 | #ifdef HAVE_RTC | 72 | #ifdef HAVE_RTC |
73 | struct tm *tm; | 73 | struct tm *tm; |
74 | #else | ||
75 | (void)today; | ||
74 | #endif | 76 | #endif |
75 | rb->lcd_getstringsize("A",&w,&h); | 77 | rb->lcd_getstringsize("A",&w,&h); |
76 | if ( ((w * 14) > LCD_WIDTH) || ((h * 7) > LCD_HEIGHT) ) | 78 | if ( ((w * 14) > LCD_WIDTH) || ((h * 7) > LCD_HEIGHT) ) |