1
0
Fork 0
forked from len0rd/rockbox

Use the defines, we can't assume a particular LCD or keypad.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@424 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-04 12:27:18 +00:00
parent f7a6c45c43
commit bd16e2fa94
5 changed files with 35 additions and 4 deletions

View file

@ -26,6 +26,8 @@
#include "tree.h"
#include "screensaver.h"
#ifdef HAVE_LCD_BITMAP
extern void tetris(void);
#define MENU_ITEM_FONT 0
@ -45,7 +47,7 @@ struct Menu_Items {
struct Menu_Items items[] = {
{ Tetris, "Tetris", tetris },
{ Screen_Saver, "Screen Saver", screensaver },
{ Browse, "Browse", dirbrowse },
{ Browse, "Browse", browse_root },
};
@ -154,5 +156,26 @@ void app_main(void)
}
}
#else
void app_main(void)
{
int key;
int cursor = 0;
lcd_puts(0,0, "Mooo!");
lcd_puts(1,1, " Rockbox!");
while(1) {
key = button_get();
if(!key) {
sleep(1);
continue;
}
}
}
#endif

View file

@ -17,6 +17,8 @@
*
****************************************************************************/
#ifdef HAVE_LCD_BITMAP
#include "screensaver.h"
#include "types.h"
#include "lcd.h"
@ -125,5 +127,4 @@ void screensaver(void)
ss_loop();
}
#endif

View file

@ -23,4 +23,5 @@
void ss_loop(void);
void screensaver(void);
#endif __SCREEN_SAVER_H__
#endif /*__SCREEN_SAVER_H__ */

View file

@ -19,6 +19,8 @@
*
****************************************************************************/
#ifdef HAVE_LCD_BITMAP
#include "types.h"
#include "lcd.h"
#include "button.h"
@ -356,3 +358,5 @@ void tetris(void)
new_block();
game_loop();
}
#endif

View file

@ -46,6 +46,7 @@ bool dirbrowse(char *root)
if(!dir)
return TRUE; /* failure */
#ifdef HAVE_LCD_BITMAP
lcd_clearrect(0, 0, LCD_WIDTH, LCD_HEIGHT);
lcd_puts(0,0, "[Browse]", 0);
@ -97,6 +98,7 @@ bool dirbrowse(char *root)
break;
}
}
#endif
return FALSE;
}