From a19032c55061474a945c8b9c1ffcfbae5f88ab9f Mon Sep 17 00:00:00 2001 From: Tomasz Malesinski Date: Fri, 18 Aug 2006 19:14:11 +0000 Subject: Iriver iFP7xx support in simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10650 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/UI-ifp7xx.bmp | Bin 0 -> 233557 bytes uisimulator/sdl/button.c | 2 ++ uisimulator/sdl/uisdl.h | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 uisimulator/sdl/UI-ifp7xx.bmp (limited to 'uisimulator/sdl') diff --git a/uisimulator/sdl/UI-ifp7xx.bmp b/uisimulator/sdl/UI-ifp7xx.bmp new file mode 100644 index 0000000000..d6df47f4fb Binary files /dev/null and b/uisimulator/sdl/UI-ifp7xx.bmp differ diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index d42cdee859..0b922c0820 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -169,6 +169,8 @@ void button_event(int key, bool pressed) new_btn = BUTTON_OFF; #elif defined BUTTON_A new_btn = BUTTON_A; +#elif defined BUTTON_EQ + new_btn = BUTTON_EQ; #endif break; diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 2e877cbff6..51d1aeca76 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -208,6 +208,19 @@ #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ + +#elif defined(IRIVER_IFP7XX) +#define UI_TITLE "iriver iFP7xx" +#define UI_WIDTH 425 /* width of GUI window */ +#define UI_HEIGHT 183 /* height of GUI window */ +#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */ +#define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */ +#define UI_LCD_BLACK 0, 0, 0 /* black */ +#define UI_LCD_POSX 115 /* x position of lcd */ +#define UI_LCD_POSY 54 /* y position of lcd */ +#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ +#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ + #endif extern SDL_Surface *gui_surface; extern bool background; /* True if the background image is enabled */ -- cgit v1.2.3