mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Win32 simulator now supports iPod Color. Fixed screendump() to correctly work for iPod simulators on big endian machines. Removed duplicate button definitions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8035 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b51f7dfc9b
commit
49a0a945ac
8 changed files with 38 additions and 19 deletions
BIN
uisimulator/win32/UI-ipodcolor.bmp
Normal file
BIN
uisimulator/win32/UI-ipodcolor.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
|
|
@ -64,6 +64,8 @@ void button_event(int key, bool pressed)
|
|||
case VK_UP:
|
||||
#ifdef BUTTON_UP
|
||||
new_btn = BUTTON_UP;
|
||||
#elif defined BUTTON_SCROLL_FWD
|
||||
new_btn = BUTTON_SCROLL_FWD;
|
||||
#elif defined BUTTON_PLAY
|
||||
new_btn = BUTTON_PLAY;
|
||||
#endif
|
||||
|
|
@ -73,16 +75,20 @@ void button_event(int key, bool pressed)
|
|||
case VK_DOWN:
|
||||
#ifdef BUTTON_DOWN
|
||||
new_btn = BUTTON_DOWN;
|
||||
#elif defined BUTTON_SCROLL_BACK
|
||||
new_btn = BUTTON_SCROLL_BACK;
|
||||
#elif defined BUTTON_STOP
|
||||
new_btn = BUTTON_STOP;
|
||||
#endif
|
||||
break;
|
||||
|
||||
#ifdef BUTTON_ON
|
||||
case VK_ADD:
|
||||
#ifdef BUTTON_ON
|
||||
new_btn = BUTTON_ON;
|
||||
break;
|
||||
#elif defined(BUTTON_SELECT) && defined(BUTTON_PLAY)
|
||||
new_btn = BUTTON_PLAY;
|
||||
#endif
|
||||
break;
|
||||
|
||||
#ifdef BUTTON_OFF
|
||||
case VK_RETURN:
|
||||
|
|
@ -112,7 +118,7 @@ void button_event(int key, bool pressed)
|
|||
|
||||
case VK_NUMPAD5:
|
||||
case VK_SPACE:
|
||||
#ifdef BUTTON_PLAY
|
||||
#if defined(BUTTON_PLAY) && !defined(BUTTON_SELECT)
|
||||
new_btn = BUTTON_PLAY;
|
||||
#elif defined(BUTTON_SELECT)
|
||||
new_btn = BUTTON_SELECT;
|
||||
|
|
|
|||
|
|
@ -97,7 +97,12 @@ void lcd_update_rect(int x_start, int y_start,
|
|||
#elif LCD_DEPTH == 2
|
||||
bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
|
||||
#elif LCD_DEPTH == 16
|
||||
#if LCD_PIXELFORMAT == RGB565SWAPPED
|
||||
unsigned bits = lcd_framebuffer[y][x];
|
||||
bitmap[y][x] = (bits >> 8) | (bits << 8);
|
||||
#else
|
||||
bitmap[y][x] = lcd_framebuffer[y][x];
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -109,6 +109,16 @@ typedef unsigned short wchar_t;
|
|||
#define UI_REMOTE_WIDTH 128
|
||||
#define UI_REMOTE_HEIGHT 64
|
||||
|
||||
#elif defined(IPOD_COLOR)
|
||||
#define UI_TITLE "iPod Color"
|
||||
#define UI_WIDTH 261 // width of GUI window
|
||||
#define UI_HEIGHT 493 // height of GUI window
|
||||
/* high-colour */
|
||||
#define UI_LCD_POSX 21 // x position of lcd
|
||||
#define UI_LCD_POSY 16 // y position of lcd
|
||||
#define UI_LCD_WIDTH 220
|
||||
#define UI_LCD_HEIGHT 176
|
||||
|
||||
#elif defined(ARCHOS_GMINI120)
|
||||
#define UI_TITLE "Gmini 120"
|
||||
#define UI_WIDTH 370 // width of GUI window
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue