diff options
Diffstat (limited to 'uisimulator/sdl/uisw32.h')
-rw-r--r-- | uisimulator/sdl/uisw32.h | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/uisimulator/sdl/uisw32.h b/uisimulator/sdl/uisw32.h new file mode 100644 index 0000000000..7b393a761b --- /dev/null +++ b/uisimulator/sdl/uisw32.h | |||
@@ -0,0 +1,156 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 by Felix Arends | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | #ifndef __UISW32_H__ | ||
21 | #define __UISW32_H__ | ||
22 | |||
23 | #ifdef _MSC_VER | ||
24 | typedef unsigned short wchar_t; | ||
25 | #define _WCHAR_T_DEFINED | ||
26 | #endif | ||
27 | #include <windows.h> | ||
28 | #include "lcd-win32.h" | ||
29 | |||
30 | #if defined(ARCHOS_RECORDER) | ||
31 | #define UI_TITLE "Jukebox Recorder" | ||
32 | #define UI_WIDTH 270 // width of GUI window | ||
33 | #define UI_HEIGHT 406 // height of GUI window | ||
34 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) | ||
35 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight) | ||
36 | #define UI_LCD_BLACK 0, 0, 0 // black | ||
37 | #define UI_LCD_POSX 80 // x position of lcd | ||
38 | #define UI_LCD_POSY 104 // y position of lcd (96 for real aspect) | ||
39 | #define UI_LCD_WIDTH 112 | ||
40 | #define UI_LCD_HEIGHT 64 // (80 for real aspect) | ||
41 | |||
42 | #elif defined(ARCHOS_PLAYER) | ||
43 | #define UI_TITLE "Jukebox Player" | ||
44 | #define UI_WIDTH 284 // width of GUI window | ||
45 | #define UI_HEIGHT 420 // height of GUI window | ||
46 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) | ||
47 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight) | ||
48 | #define UI_LCD_BLACK 0, 0, 0 // black | ||
49 | #define UI_LCD_POSX 75 // x position of lcd | ||
50 | #define UI_LCD_POSY 111 // y position of lcd | ||
51 | #define UI_LCD_WIDTH 132 | ||
52 | #define UI_LCD_HEIGHT 75 | ||
53 | |||
54 | #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) | ||
55 | #define UI_TITLE "Jukebox FM Recorder" | ||
56 | #define UI_WIDTH 285 // width of GUI window | ||
57 | #define UI_HEIGHT 414 // height of GUI window | ||
58 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) | ||
59 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 // bkgnd color of LCD (backlight) | ||
60 | #define UI_LCD_BLACK 0, 0, 0 // black | ||
61 | #define UI_LCD_POSX 87 // x position of lcd | ||
62 | #define UI_LCD_POSY 77 // y position of lcd (69 for real aspect) | ||
63 | #define UI_LCD_WIDTH 112 | ||
64 | #define UI_LCD_HEIGHT 64 // (80 for real aspect) | ||
65 | |||
66 | #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM) | ||
67 | #define UI_TITLE "Ondio" | ||
68 | #define UI_WIDTH 155 // width of GUI window | ||
69 | #define UI_HEIGHT 334 // height of GUI window | ||
70 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) | ||
71 | #define UI_LCD_BGCOLORLIGHT 90, 145, 90 // bkgnd color of LCD (backlight) | ||
72 | #define UI_LCD_BLACK 0, 0, 0 // black | ||
73 | #define UI_LCD_POSX 21 // x position of lcd | ||
74 | #define UI_LCD_POSY 82 // y position of lcd (74 for real aspect) | ||
75 | #define UI_LCD_WIDTH 112 | ||
76 | #define UI_LCD_HEIGHT 64 // (80 for real aspect) | ||
77 | |||
78 | #elif defined(IRIVER_H100_SERIES) | ||
79 | #define UI_TITLE "iriver H1x0" | ||
80 | #define UI_WIDTH 379 // width of GUI window | ||
81 | #define UI_HEIGHT 508 // height of GUI window | ||
82 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) | ||
83 | #define UI_LCD_BGCOLORLIGHT 230, 216, 173 // bkgnd color of LCD (backlight) | ||
84 | #define UI_LCD_BLACK 0, 0, 0 // black | ||
85 | #define UI_LCD_POSX 109 // x position of lcd | ||
86 | #define UI_LCD_POSY 23 // y position of lcd | ||
87 | #define UI_LCD_WIDTH 160 | ||
88 | #define UI_LCD_HEIGHT 128 | ||
89 | #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight) | ||
90 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight) | ||
91 | #define UI_REMOTE_POSX 50 // x position of remote lcd | ||
92 | #define UI_REMOTE_POSY 403 // y position of remote lcd | ||
93 | #define UI_REMOTE_WIDTH 128 | ||
94 | #define UI_REMOTE_HEIGHT 64 | ||
95 | |||
96 | #elif defined(IRIVER_H300_SERIES) | ||
97 | #define UI_TITLE "iriver H300" | ||
98 | #define UI_WIDTH 288 // width of GUI window | ||
99 | #define UI_HEIGHT 581 // height of GUI window | ||
100 | /* high-colour */ | ||
101 | #define UI_LCD_POSX 26 // x position of lcd | ||
102 | #define UI_LCD_POSY 36 // y position of lcd | ||
103 | #define UI_LCD_WIDTH 220 | ||
104 | #define UI_LCD_HEIGHT 176 | ||
105 | #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight) | ||
106 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight) | ||
107 | #define UI_REMOTE_POSX 12 // x position of remote lcd | ||
108 | #define UI_REMOTE_POSY 478 // y position of remote lcd | ||
109 | #define UI_REMOTE_WIDTH 128 | ||
110 | #define UI_REMOTE_HEIGHT 64 | ||
111 | |||
112 | #elif defined(IPOD_COLOR) | ||
113 | #define UI_TITLE "iPod Color" | ||
114 | #define UI_WIDTH 261 // width of GUI window | ||
115 | #define UI_HEIGHT 493 // height of GUI window | ||
116 | /* high-colour */ | ||
117 | #define UI_LCD_POSX 21 // x position of lcd | ||
118 | #define UI_LCD_POSY 16 // y position of lcd | ||
119 | #define UI_LCD_WIDTH 220 | ||
120 | #define UI_LCD_HEIGHT 176 | ||
121 | |||
122 | #elif defined(IPOD_NANO) | ||
123 | #define UI_TITLE "iPod Nano" | ||
124 | #define UI_WIDTH 199 // width of GUI window | ||
125 | #define UI_HEIGHT 421 // height of GUI window | ||
126 | /* high-colour */ | ||
127 | #define UI_LCD_POSX 13 // x position of lcd | ||
128 | #define UI_LCD_POSY 14 // y position of lcd | ||
129 | #define UI_LCD_WIDTH 176 | ||
130 | #define UI_LCD_HEIGHT 132 | ||
131 | |||
132 | #elif defined(ARCHOS_GMINI120) | ||
133 | #define UI_TITLE "Gmini 120" | ||
134 | #define UI_WIDTH 370 // width of GUI window | ||
135 | #define UI_HEIGHT 264 // height of GUI window | ||
136 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) | ||
137 | #define UI_LCD_BGCOLORLIGHT 230, 160, 60 // bkgnd color of LCD (backlight) | ||
138 | #define UI_LCD_BLACK 0, 0, 0 // black | ||
139 | #define UI_LCD_POSX 85 // x position of lcd | ||
140 | #define UI_LCD_POSY 61 // y position of lcd (74 for real aspect) | ||
141 | #define UI_LCD_WIDTH 192 // * 1.5 | ||
142 | #define UI_LCD_HEIGHT 96 // * 1.5 | ||
143 | |||
144 | #endif | ||
145 | |||
146 | #define TIMER_EVENT 0x34928340 | ||
147 | |||
148 | extern HWND hGUIWnd; // the GUI window handle | ||
149 | extern unsigned int uThreadID; // id of mod thread | ||
150 | extern bool bActive; | ||
151 | |||
152 | // typedefs | ||
153 | typedef unsigned char uchar; | ||
154 | typedef unsigned int uint32; | ||
155 | |||
156 | #endif // #ifndef __UISW32_H__ | ||