Actual M5 simulator image.
[Rockbox.git] / uisimulator / sdl / uisdl.h
blob93305b0a7cb61e4ee3c99358bd05b15e7c9746de
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Dan Everton
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
20 #ifndef __UISDL_H__
21 #define __UISDL_H__
23 #include <stdbool.h>
24 #include "SDL.h"
26 /* colour definitions are R, G, B */
28 #if defined(ARCHOS_RECORDER)
29 #define UI_TITLE "Jukebox Recorder"
30 #define UI_WIDTH 270 /* width of GUI window */
31 #define UI_HEIGHT 406 /* height of GUI window */
32 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
33 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
34 #define UI_LCD_BLACK 0, 0, 0 /* black */
35 #define UI_LCD_POSX 80 /* x position of lcd */
36 #define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */
37 #define UI_LCD_WIDTH 112
38 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
40 #elif defined(ARCHOS_PLAYER)
41 #define UI_TITLE "Jukebox Player"
42 #define UI_WIDTH 284 /* width of GUI window */
43 #define UI_HEIGHT 420 /* height of GUI window */
44 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
45 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
46 #define UI_LCD_BLACK 0, 0, 0 /* black */
47 #define UI_LCD_POSX 75 /* x position of lcd */
48 #define UI_LCD_POSY 116 /* y position of lcd */
49 #define UI_LCD_WIDTH 132
50 #define UI_LCD_HEIGHT 64
52 #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
53 #define UI_TITLE "Jukebox FM Recorder"
54 #define UI_WIDTH 285 /* width of GUI window */
55 #define UI_HEIGHT 414 /* height of GUI window */
56 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
57 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
58 #define UI_LCD_BLACK 0, 0, 0 /* black */
59 #define UI_LCD_POSX 87 /* x position of lcd */
60 #define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */
61 #define UI_LCD_WIDTH 112
62 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
64 #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
65 #define UI_TITLE "Ondio"
66 #define UI_WIDTH 155 /* width of GUI window */
67 #define UI_HEIGHT 334 /* height of GUI window */
68 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
69 #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */
70 #define UI_LCD_BLACK 0, 0, 0 /* black */
71 #define UI_LCD_POSX 21 /* x position of lcd */
72 #define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */
73 #define UI_LCD_WIDTH 112
74 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
76 #elif defined(IRIVER_H120) || defined(IRIVER_H100)
77 #define UI_TITLE "iriver H1x0"
78 #define UI_WIDTH 379 /* width of GUI window */
79 #define UI_HEIGHT 508 /* height of GUI window */
80 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
81 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
82 #define UI_LCD_BLACK 0, 0, 0 /* black */
83 #define UI_LCD_POSX 109 /* x position of lcd */
84 #define UI_LCD_POSY 23 /* y position of lcd */
85 #define UI_LCD_WIDTH 160
86 #define UI_LCD_HEIGHT 128
87 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
88 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
89 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
90 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
91 #define UI_REMOTE_WIDTH 128
92 #define UI_REMOTE_HEIGHT 64
94 #elif defined(IRIVER_H300)
95 #define UI_TITLE "iriver H300"
96 #define UI_WIDTH 288 /* width of GUI window */
97 #define UI_HEIGHT 581 /* height of GUI window */
98 /* high-colour */
99 #define UI_LCD_POSX 26 /* x position of lcd */
100 #define UI_LCD_POSY 36 /* y position of lcd */
101 #define UI_LCD_WIDTH 220
102 #define UI_LCD_HEIGHT 176
103 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
104 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
105 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
106 #define UI_REMOTE_POSY 478 /* y position of remote lcd */
107 #define UI_REMOTE_WIDTH 128
108 #define UI_REMOTE_HEIGHT 64
110 #elif defined(IPOD_3G)
111 #define UI_TITLE "iPod 3G"
112 #define UI_WIDTH 218 /* width of GUI window */
113 #define UI_HEIGHT 389 /* height of GUI window */
114 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
115 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
116 #define UI_LCD_BLACK 0, 0, 0 /* black */
117 #define UI_LCD_POSX 29 /* x position of lcd */
118 #define UI_LCD_POSY 16 /* y position of lcd */
119 #define UI_LCD_WIDTH 160
120 #define UI_LCD_HEIGHT 128
122 #elif defined(IPOD_4G)
123 #define UI_TITLE "iPod 4G"
124 #define UI_WIDTH 196 /* width of GUI window */
125 #define UI_HEIGHT 370 /* height of GUI window */
126 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
127 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
128 #define UI_LCD_BLACK 0, 0, 0 /* black */
129 #define UI_LCD_POSX 19 /* x position of lcd */
130 #define UI_LCD_POSY 14 /* y position of lcd */
131 #define UI_LCD_WIDTH 160
132 #define UI_LCD_HEIGHT 128
134 #elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
135 #define UI_TITLE "iPod mini"
136 #define UI_WIDTH 191 /* width of GUI window */
137 #define UI_HEIGHT 365 /* height of GUI window */
138 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
139 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
140 #define UI_LCD_BLACK 0, 0, 0 /* black */
141 #define UI_LCD_POSX 24 /* x position of lcd */
142 #define UI_LCD_POSY 17 /* y position of lcd */
143 #define UI_LCD_WIDTH 138
144 #define UI_LCD_HEIGHT 110
146 #elif defined(IPOD_COLOR)
147 #define UI_TITLE "iPod Color"
148 #define UI_WIDTH 261 /* width of GUI window */
149 #define UI_HEIGHT 493 /* height of GUI window */
150 /* high-colour */
151 #define UI_LCD_POSX 21 /* x position of lcd */
152 #define UI_LCD_POSY 16 /* y position of lcd */
153 #define UI_LCD_WIDTH 220
154 #define UI_LCD_HEIGHT 176
156 #elif defined(IPOD_NANO)
157 #define UI_TITLE "iPod Nano"
158 #define UI_WIDTH 199 /* width of GUI window */
159 #define UI_HEIGHT 421 /* height of GUI window */
160 /* high-colour */
161 #define UI_LCD_POSX 13 /* x position of lcd */
162 #define UI_LCD_POSY 14 /* y position of lcd */
163 #define UI_LCD_WIDTH 176
164 #define UI_LCD_HEIGHT 132
166 #elif defined(IPOD_VIDEO)
167 #define UI_TITLE "iPod Video"
168 #define UI_WIDTH 350 /* width of GUI window */
169 #define UI_HEIGHT 591 /* height of GUI window */
170 /* high-colour */
171 #define UI_LCD_POSX 14 /* x position of lcd */
172 #define UI_LCD_POSY 12 /* y position of lcd */
173 #define UI_LCD_WIDTH 320
174 #define UI_LCD_HEIGHT 240
176 #elif defined(IAUDIO_X5)
177 #define UI_TITLE "iAudio X5"
178 #define UI_WIDTH 300 /* width of GUI window */
179 #define UI_HEIGHT 558 /* height of GUI window */
180 /* high-colour */
181 #define UI_LCD_POSX 55 /* x position of lcd */
182 #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */
183 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
184 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
185 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
186 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
187 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
188 #define UI_REMOTE_POSY 462 /* y position of remote lcd */
189 #define UI_REMOTE_WIDTH 128
190 #define UI_REMOTE_HEIGHT 96
192 #elif defined(IAUDIO_M5)
193 #define UI_TITLE "iAudio M5"
194 #define UI_WIDTH 374 /* width of GUI window */
195 #define UI_HEIGHT 650 /* height of GUI window */
196 /* high-colour */
197 #define UI_LCD_POSX 82 /* x position of lcd */
198 #define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */
199 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
200 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
201 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
202 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
203 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
204 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
205 #define UI_REMOTE_POSX 59 /* x position of remote lcd */
206 #define UI_REMOTE_POSY 509 /* y position of remote lcd */
207 #define UI_REMOTE_WIDTH 128
208 #define UI_REMOTE_HEIGHT 96
210 #elif defined(GIGABEAT_F)
211 #define UI_TITLE "Toshiba Gigabeat"
212 #define UI_WIDTH 401 /* width of GUI window */
213 #define UI_HEIGHT 655 /* height of GUI window */
214 /* high-colour */
215 #define UI_LCD_POSX 48 /* x position of lcd */
216 #define UI_LCD_POSY 60 /* y position of lcd */
217 #define UI_LCD_WIDTH 240
218 #define UI_LCD_HEIGHT 320
220 #elif defined(IRIVER_H10)
221 #define UI_TITLE "iriver H10 20Gb"
222 #define UI_WIDTH 392 /* width of GUI window */
223 #define UI_HEIGHT 391 /* height of GUI window */
224 /* high-colour */
225 #define UI_LCD_POSX 111 /* x position of lcd */
226 #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */
227 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
228 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
230 #elif defined(IRIVER_H10_5GB)
231 #define UI_TITLE "iriver H10 5/6Gb"
232 #define UI_WIDTH 353 /* width of GUI window */
233 #define UI_HEIGHT 460 /* height of GUI window */
234 /* high-colour */
235 #define UI_LCD_POSX 112 /* x position of lcd */
236 #define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */
237 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
238 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
240 #elif defined(SANSA_E200)
241 #define UI_TITLE "Sansa e200"
242 #define UI_WIDTH 260 /* width of GUI window */
243 #define UI_HEIGHT 502 /* height of GUI window */
244 /* high-colour */
245 #define UI_LCD_POSX 42 /* x position of lcd */
246 #define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
247 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
248 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
250 #elif defined(IRIVER_IFP7XX)
251 #define UI_TITLE "iriver iFP7xx"
252 #define UI_WIDTH 425 /* width of GUI window */
253 #define UI_HEIGHT 183 /* height of GUI window */
254 #define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
255 #define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
256 #define UI_LCD_BLACK 0, 0, 0 /* black */
257 #define UI_LCD_POSX 115 /* x position of lcd */
258 #define UI_LCD_POSY 54 /* y position of lcd */
259 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
260 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
262 #elif defined(ARCHOS_AV300)
263 #define UI_TITLE "Archos AV300"
264 /* We are temporarily using a 2bpp LCD driver and dummy bitmap */
265 #define UI_WIDTH 420 /* width of GUI window */
266 #define UI_HEIGHT 340 /* height of GUI window */
267 #define UI_LCD_POSX 50 /* x position of lcd */
268 #define UI_LCD_POSY 50 /* y position of lcd */
269 #define UI_LCD_WIDTH 320
270 #define UI_LCD_HEIGHT 240
271 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
272 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
273 #define UI_LCD_BLACK 0, 0, 0 /* black */
275 #endif
276 extern SDL_Surface *gui_surface;
277 extern bool background; /* True if the background image is enabled */
278 extern int display_zoom;
280 #endif /* #ifndef __UISDL_H__ */