summaryrefslogtreecommitdiff
path: root/uisimulator/win32
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32')
-rw-r--r--uisimulator/win32/UI-ipod4g.bmpbin0 -> 217604 bytes
-rw-r--r--uisimulator/win32/lcd-win32.c4
-rw-r--r--uisimulator/win32/uisw32.h12
3 files changed, 16 insertions, 0 deletions
diff --git a/uisimulator/win32/UI-ipod4g.bmp b/uisimulator/win32/UI-ipod4g.bmp
new file mode 100644
index 0000000000..85af574d7c
--- /dev/null
+++ b/uisimulator/win32/UI-ipod4g.bmp
Binary files differ
diff --git a/uisimulator/win32/lcd-win32.c b/uisimulator/win32/lcd-win32.c
index e9bf1dacf8..a50fbd11f6 100644
--- a/uisimulator/win32/lcd-win32.c
+++ b/uisimulator/win32/lcd-win32.c
@@ -95,7 +95,11 @@ void lcd_update_rect(int x_start, int y_start,
95#if LCD_DEPTH == 1 95#if LCD_DEPTH == 1
96 bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1); 96 bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
97#elif LCD_DEPTH == 2 97#elif LCD_DEPTH == 2
98#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
99 bitmap[y][x] = ((lcd_framebuffer[y][x/4] >> (2 * (x & 3))) & 3);
100#else
98 bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3); 101 bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
102#endif
99#elif LCD_DEPTH == 16 103#elif LCD_DEPTH == 16
100#if LCD_PIXELFORMAT == RGB565SWAPPED 104#if LCD_PIXELFORMAT == RGB565SWAPPED
101 unsigned bits = lcd_framebuffer[y][x]; 105 unsigned bits = lcd_framebuffer[y][x];
diff --git a/uisimulator/win32/uisw32.h b/uisimulator/win32/uisw32.h
index 7b393a761b..ce8a046bcd 100644
--- a/uisimulator/win32/uisw32.h
+++ b/uisimulator/win32/uisw32.h
@@ -109,6 +109,18 @@ typedef unsigned short wchar_t;
109#define UI_REMOTE_WIDTH 128 109#define UI_REMOTE_WIDTH 128
110#define UI_REMOTE_HEIGHT 64 110#define UI_REMOTE_HEIGHT 64
111 111
112#elif defined(IPOD_4G)
113#define UI_TITLE "iPod 4G"
114#define UI_WIDTH 196 // width of GUI window
115#define UI_HEIGHT 370 // height of GUI window
116#define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight)
117#define UI_LCD_BGCOLORLIGHT 173, 216, 230 // bkgnd color of LCD (backlight)
118#define UI_LCD_BLACK 0, 0, 0 // black
119#define UI_LCD_POSX 19 // x position of lcd
120#define UI_LCD_POSY 14 // y position of lcd
121#define UI_LCD_WIDTH 160
122#define UI_LCD_HEIGHT 128
123
112#elif defined(IPOD_COLOR) 124#elif defined(IPOD_COLOR)
113#define UI_TITLE "iPod Color" 125#define UI_TITLE "iPod Color"
114#define UI_WIDTH 261 // width of GUI window 126#define UI_WIDTH 261 // width of GUI window