diff options
author | Tomasz Malesinski <tomal@rockbox.org> | 2006-08-18 19:14:11 +0000 |
---|---|---|
committer | Tomasz Malesinski <tomal@rockbox.org> | 2006-08-18 19:14:11 +0000 |
commit | a19032c55061474a945c8b9c1ffcfbae5f88ab9f (patch) | |
tree | 42479ba49ea863be85f1aadb33b3e68621f7e116 /uisimulator/sdl | |
parent | 09c3961a4964ed5e31d9a5e5d09302f4ae03ecf6 (diff) | |
download | rockbox-a19032c55061474a945c8b9c1ffcfbae5f88ab9f.tar.gz rockbox-a19032c55061474a945c8b9c1ffcfbae5f88ab9f.zip |
Iriver iFP7xx support in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10650 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/UI-ifp7xx.bmp | bin | 0 -> 233557 bytes | |||
-rw-r--r-- | uisimulator/sdl/button.c | 2 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 13 |
3 files changed, 15 insertions, 0 deletions
diff --git a/uisimulator/sdl/UI-ifp7xx.bmp b/uisimulator/sdl/UI-ifp7xx.bmp new file mode 100644 index 0000000000..d6df47f4fb --- /dev/null +++ b/uisimulator/sdl/UI-ifp7xx.bmp | |||
Binary files 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) | |||
169 | new_btn = BUTTON_OFF; | 169 | new_btn = BUTTON_OFF; |
170 | #elif defined BUTTON_A | 170 | #elif defined BUTTON_A |
171 | new_btn = BUTTON_A; | 171 | new_btn = BUTTON_A; |
172 | #elif defined BUTTON_EQ | ||
173 | new_btn = BUTTON_EQ; | ||
172 | #endif | 174 | #endif |
173 | break; | 175 | break; |
174 | 176 | ||
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 @@ | |||
208 | #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ | 208 | #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ |
209 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ | 209 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
210 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ | 210 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
211 | |||
212 | #elif defined(IRIVER_IFP7XX) | ||
213 | #define UI_TITLE "iriver iFP7xx" | ||
214 | #define UI_WIDTH 425 /* width of GUI window */ | ||
215 | #define UI_HEIGHT 183 /* height of GUI window */ | ||
216 | #define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */ | ||
217 | #define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */ | ||
218 | #define UI_LCD_BLACK 0, 0, 0 /* black */ | ||
219 | #define UI_LCD_POSX 115 /* x position of lcd */ | ||
220 | #define UI_LCD_POSY 54 /* y position of lcd */ | ||
221 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ | ||
222 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ | ||
223 | |||
211 | #endif | 224 | #endif |
212 | extern SDL_Surface *gui_surface; | 225 | extern SDL_Surface *gui_surface; |
213 | extern bool background; /* True if the background image is enabled */ | 226 | extern bool background; /* True if the background image is enabled */ |