New makefile solution: A single invocation of 'make' to build the entire tree. Fully...
[kugel-rb.git] / uisimulator / sdl / uisdl.h
blob0a97df56fa88cec90a5eac6012aad6945bcf2a1f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Dan Everton
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __UISDL_H__
23 #define __UISDL_H__
25 #include <stdbool.h>
26 #include <SDL.h>
28 /* colour definitions are R, G, B */
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_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
37 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
38 #define UI_LCD_POSX 80 /* x position of lcd */
39 #define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */
40 #define UI_LCD_WIDTH 112
41 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
43 #elif defined(ARCHOS_PLAYER)
44 #define UI_TITLE "Jukebox Player"
45 #define UI_WIDTH 284 /* width of GUI window */
46 #define UI_HEIGHT 420 /* height of GUI window */
47 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
48 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
49 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
50 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
51 #define UI_LCD_POSX 75 /* x position of lcd */
52 #define UI_LCD_POSY 116 /* y position of lcd */
53 #define UI_LCD_WIDTH 132
54 #define UI_LCD_HEIGHT 64
56 #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
57 #define UI_TITLE "Jukebox FM Recorder"
58 #define UI_WIDTH 285 /* width of GUI window */
59 #define UI_HEIGHT 414 /* height of GUI window */
60 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
61 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
62 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
63 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
64 #define UI_LCD_POSX 87 /* x position of lcd */
65 #define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */
66 #define UI_LCD_WIDTH 112
67 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
69 #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
70 #define UI_TITLE "Ondio"
71 #define UI_WIDTH 155 /* width of GUI window */
72 #define UI_HEIGHT 334 /* height of GUI window */
73 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
74 #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */
75 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
76 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
77 #define UI_LCD_POSX 21 /* x position of lcd */
78 #define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */
79 #define UI_LCD_WIDTH 112
80 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
82 #elif defined(IRIVER_H120) || defined(IRIVER_H100)
83 #define UI_TITLE "iriver H1x0"
84 #define UI_WIDTH 379 /* width of GUI window */
85 #define UI_HEIGHT 508 /* height of GUI window */
86 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
87 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
88 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
89 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
90 #define UI_LCD_POSX 109 /* x position of lcd */
91 #define UI_LCD_POSY 23 /* y position of lcd */
92 #define UI_LCD_WIDTH 160
93 #define UI_LCD_HEIGHT 128
94 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
95 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
96 #define UI_REMOTE_FGCOLOR 0, 0, 0 /* foreground color of remote LCD (no backlight) */
97 #define UI_REMOTE_FGCOLORLIGHT 0, 0, 0 /* foreground color of remote LCD (backlight) */
98 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
99 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
100 #define UI_REMOTE_WIDTH 128
101 #define UI_REMOTE_HEIGHT 64
103 #elif defined(IRIVER_H300)
104 #define UI_TITLE "iriver H300"
105 #define UI_WIDTH 288 /* width of GUI window */
106 #define UI_HEIGHT 581 /* height of GUI window */
107 /* high-colour */
108 #define UI_LCD_POSX 26 /* x position of lcd */
109 #define UI_LCD_POSY 36 /* y position of lcd */
110 #define UI_LCD_WIDTH 220
111 #define UI_LCD_HEIGHT 176
112 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
113 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
114 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
115 #define UI_REMOTE_POSY 478 /* y position of remote lcd */
116 #define UI_REMOTE_WIDTH 128
117 #define UI_REMOTE_HEIGHT 64
119 #elif defined(IPOD_1G2G)
120 #define UI_TITLE "iPod 1G/2G"
121 #define UI_WIDTH 224 /* width of GUI window */
122 #define UI_HEIGHT 382 /* height of GUI window */
123 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
124 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
125 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
126 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
127 #define UI_LCD_POSX 32 /* x position of lcd */
128 #define UI_LCD_POSY 12 /* y position of lcd */
129 #define UI_LCD_WIDTH 160
130 #define UI_LCD_HEIGHT 128
132 #elif defined(IPOD_3G)
133 #define UI_TITLE "iPod 3G"
134 #define UI_WIDTH 218 /* width of GUI window */
135 #define UI_HEIGHT 389 /* height of GUI window */
136 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
137 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
138 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
139 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
140 #define UI_LCD_POSX 29 /* x position of lcd */
141 #define UI_LCD_POSY 16 /* y position of lcd */
142 #define UI_LCD_WIDTH 160
143 #define UI_LCD_HEIGHT 128
145 #elif defined(IPOD_4G)
146 #define UI_TITLE "iPod 4G"
147 #define UI_WIDTH 196 /* width of GUI window */
148 #define UI_HEIGHT 370 /* height of GUI window */
149 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
150 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
151 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
152 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
153 #define UI_LCD_POSX 19 /* x position of lcd */
154 #define UI_LCD_POSY 14 /* y position of lcd */
155 #define UI_LCD_WIDTH 160
156 #define UI_LCD_HEIGHT 128
158 #elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
159 #define UI_TITLE "iPod mini"
160 #define UI_WIDTH 191 /* width of GUI window */
161 #define UI_HEIGHT 365 /* height of GUI window */
162 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
163 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
164 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
165 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
166 #define UI_LCD_POSX 24 /* x position of lcd */
167 #define UI_LCD_POSY 17 /* y position of lcd */
168 #define UI_LCD_WIDTH 138
169 #define UI_LCD_HEIGHT 110
171 #elif defined(IPOD_COLOR)
172 #define UI_TITLE "iPod Color"
173 #define UI_WIDTH 261 /* width of GUI window */
174 #define UI_HEIGHT 493 /* height of GUI window */
175 /* high-colour */
176 #define UI_LCD_POSX 21 /* x position of lcd */
177 #define UI_LCD_POSY 16 /* y position of lcd */
178 #define UI_LCD_WIDTH 220
179 #define UI_LCD_HEIGHT 176
181 #elif defined(IPOD_NANO)
182 #define UI_TITLE "iPod Nano"
183 #define UI_WIDTH 199 /* width of GUI window */
184 #define UI_HEIGHT 421 /* height of GUI window */
185 /* high-colour */
186 #define UI_LCD_POSX 13 /* x position of lcd */
187 #define UI_LCD_POSY 14 /* y position of lcd */
188 #define UI_LCD_WIDTH 176
189 #define UI_LCD_HEIGHT 132
191 #elif defined(IPOD_VIDEO)
192 #define UI_TITLE "iPod Video"
193 #define UI_WIDTH 350 /* width of GUI window */
194 #define UI_HEIGHT 591 /* height of GUI window */
195 /* high-colour */
196 #define UI_LCD_POSX 14 /* x position of lcd */
197 #define UI_LCD_POSY 12 /* y position of lcd */
198 #define UI_LCD_WIDTH 320
199 #define UI_LCD_HEIGHT 240
201 #elif defined(IAUDIO_X5)
202 #define UI_TITLE "iAudio X5"
203 #define UI_WIDTH 300 /* width of GUI window */
204 #define UI_HEIGHT 558 /* height of GUI window */
205 /* high-colour */
206 #define UI_LCD_POSX 55 /* x position of lcd */
207 #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */
208 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
209 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
210 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
211 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
212 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
213 #define UI_REMOTE_POSY 462 /* y position of remote lcd */
214 #define UI_REMOTE_WIDTH 128
215 #define UI_REMOTE_HEIGHT 96
217 #elif defined(IAUDIO_M5)
218 #define UI_TITLE "iAudio M5"
219 #define UI_WIDTH 374 /* width of GUI window */
220 #define UI_HEIGHT 650 /* height of GUI window */
221 /* high-colour */
222 #define UI_LCD_POSX 82 /* x position of lcd */
223 #define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */
224 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
225 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
226 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
227 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
228 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
229 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
230 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
231 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
232 #define UI_REMOTE_POSX 59 /* x position of remote lcd */
233 #define UI_REMOTE_POSY 509 /* y position of remote lcd */
234 #define UI_REMOTE_WIDTH 128
235 #define UI_REMOTE_HEIGHT 96
237 #elif defined(IAUDIO_M3)
238 #define UI_TITLE "iAudio M3"
239 #define UI_WIDTH 397 /* width of GUI window */
240 #define UI_HEIGHT 501 /* height of GUI window */
241 #define UI_LCD_POSX 92 /* x position of lcd */
242 #define UI_LCD_POSY 348 /* y position of lcd */
243 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no bklight) */
244 #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (bklight) */
245 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
246 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
247 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
248 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
250 #elif defined(GIGABEAT_F)
251 #define UI_TITLE "Toshiba Gigabeat"
252 #define UI_WIDTH 401 /* width of GUI window */
253 #define UI_HEIGHT 655 /* height of GUI window */
254 /* high-colour */
255 #define UI_LCD_POSX 48 /* x position of lcd */
256 #define UI_LCD_POSY 60 /* y position of lcd */
257 #define UI_LCD_WIDTH 240
258 #define UI_LCD_HEIGHT 320
260 #elif defined(GIGABEAT_S)
261 #define UI_TITLE "Toshiba Gigabeat"
262 #define UI_WIDTH 450 /* width of GUI window */
263 #define UI_HEIGHT 688 /* height of GUI window */
264 /* high-colour */
265 #define UI_LCD_POSX 96 /* x position of lcd */
266 #define UI_LCD_POSY 90 /* y position of lcd */
267 #define UI_LCD_WIDTH 240
268 #define UI_LCD_HEIGHT 320
270 #elif defined(MROBE_500)
271 #define UI_TITLE "Olympus M:Robe 500"
272 #define UI_WIDTH 401 /* width of GUI window */
273 #define UI_HEIGHT 655 /* height of GUI window */
274 /* high-colour */
275 #define UI_LCD_POSX 48 /* x position of lcd */
276 #define UI_LCD_POSY 60 /* y position of lcd */
277 #define UI_LCD_WIDTH LCD_WIDTH
278 #define UI_LCD_HEIGHT LCD_HEIGHT
279 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
280 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
281 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
282 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
283 #define UI_REMOTE_WIDTH 79
284 #define UI_REMOTE_HEIGHT 16
286 #elif defined(IRIVER_H10)
287 #define UI_TITLE "iriver H10 20Gb"
288 #define UI_WIDTH 392 /* width of GUI window */
289 #define UI_HEIGHT 391 /* height of GUI window */
290 /* high-colour */
291 #define UI_LCD_POSX 111 /* x position of lcd */
292 #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */
293 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
294 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
296 #elif defined(IRIVER_H10_5GB)
297 #define UI_TITLE "iriver H10 5/6Gb"
298 #define UI_WIDTH 353 /* width of GUI window */
299 #define UI_HEIGHT 460 /* height of GUI window */
300 /* high-colour */
301 #define UI_LCD_POSX 112 /* x position of lcd */
302 #define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */
303 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
304 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
306 #elif defined(SANSA_E200) || defined(SANSA_E200V2)
307 #ifdef SANSA_E200
308 #define UI_TITLE "Sansa e200"
309 #else
310 #define UI_TITLE "Sansa e200v2"
311 #endif
312 #define UI_WIDTH 260 /* width of GUI window */
313 #define UI_HEIGHT 502 /* height of GUI window */
314 /* high-colour */
315 #define UI_LCD_POSX 42 /* x position of lcd */
316 #define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
317 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
318 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
320 #elif defined(SANSA_C200)
321 #define UI_TITLE "Sansa c200"
322 #define UI_WIDTH 350 /* width of GUI window */
323 #define UI_HEIGHT 152 /* height of GUI window */
324 /* high-colour */
325 #define UI_LCD_POSX 42 /* x position of lcd */
326 #define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */
327 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
328 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
330 #elif defined(IRIVER_IFP7XX)
331 #define UI_TITLE "iriver iFP7xx"
332 #define UI_WIDTH 425 /* width of GUI window */
333 #define UI_HEIGHT 183 /* height of GUI window */
334 #define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
335 #define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
336 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
337 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
338 #define UI_LCD_POSX 115 /* x position of lcd */
339 #define UI_LCD_POSY 54 /* y position of lcd */
340 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
341 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
343 #elif defined(ARCHOS_AV300)
344 #define UI_TITLE "Archos AV300"
345 /* We are temporarily using a 2bpp LCD driver and dummy bitmap */
346 #define UI_WIDTH 420 /* width of GUI window */
347 #define UI_HEIGHT 340 /* height of GUI window */
348 #define UI_LCD_POSX 50 /* x position of lcd */
349 #define UI_LCD_POSY 50 /* y position of lcd */
350 #define UI_LCD_WIDTH 320
351 #define UI_LCD_HEIGHT 240
352 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
353 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
354 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
355 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
357 #elif defined(MROBE_100)
358 #define UI_TITLE "Olympus M:Robe 100"
359 #define UI_WIDTH 247 /* width of GUI window */
360 #define UI_HEIGHT 416 /* height of GUI window */
361 #define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */
362 #define UI_LCD_BGCOLORLIGHT 94, 2, 2 /* bkgnd color of LCD (backlight) */
363 #define UI_LCD_FGCOLOR 50, 50, 50 /* foreground color of LCD (no backlight) */
364 #define UI_LCD_FGCOLORLIGHT 241, 6, 3 /* foreground color of LCD (backlight) */
365 #define UI_LCD_POSX 43 /* x position of lcd */
366 #define UI_LCD_POSY 25 /* y position of lcd */
367 #define UI_LCD_WIDTH 160
368 #define UI_LCD_HEIGHT 128
370 #elif defined(COWON_D2)
371 #define UI_TITLE "Cowon D2"
372 #define UI_WIDTH 472 /* width of GUI window */
373 #define UI_HEIGHT 368 /* height of GUI window */
374 #define UI_LCD_POSX 58 /* x position of lcd */
375 #define UI_LCD_POSY 67 /* y position of lcd */
376 #define UI_LCD_WIDTH 320
377 #define UI_LCD_HEIGHT 240
378 #define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
379 #define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
380 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
381 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
383 #elif defined(IAUDIO_7)
384 #define UI_TITLE "iAudio7"
385 #define UI_WIDTH 494 /* width of GUI window */
386 #define UI_HEIGHT 214 /* height of GUI window */
387 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
388 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
389 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
390 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
391 #define UI_LCD_POSX 131 /* x position of lcd */
392 #define UI_LCD_POSY 38 /* y position of lcd */
393 #define UI_LCD_WIDTH 160
394 #define UI_LCD_HEIGHT 128
396 #elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
397 #ifdef CREATIVE_ZVM
398 #define UI_TITLE "Creative Zen Vision:M 30GB"
399 #else
400 #define UI_TITLE "Creative Zen Vision:M 60GB"
401 #endif
402 #define UI_WIDTH 383 /* width of GUI window */
403 #define UI_HEIGHT 643 /* height of GUI window */
404 #define UI_LCD_POSX 31 /* x position of lcd */
405 #define UI_LCD_POSY 62 /* y position of lcd */
406 #define UI_LCD_WIDTH 320
407 #define UI_LCD_HEIGHT 240
408 #define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
409 #define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
410 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
411 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
413 #elif defined(CREATIVE_ZV)
414 #define UI_TITLE "Creative Zen Vision"
415 #define UI_WIDTH 1054 /* width of GUI window */
416 #define UI_HEIGHT 643 /* height of GUI window */
417 #define UI_LCD_POSX 129 /* x position of lcd */
418 #define UI_LCD_POSY 85 /* y position of lcd */
419 #define UI_LCD_WIDTH 640
420 #define UI_LCD_HEIGHT 480
421 #define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
422 #define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
423 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
424 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
426 #elif defined(MEIZU_M6SL)
427 #define UI_TITLE "Meizu M6"
428 #define UI_WIDTH 512 /* width of GUI window */
429 #define UI_HEIGHT 322 /* height of GUI window */
430 #define UI_LCD_POSX 39 /* x position of lcd */
431 #define UI_LCD_POSY 38 /* y position of lcd */
432 #define UI_LCD_WIDTH 320
433 #define UI_LCD_HEIGHT 240
434 #define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
435 #define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
436 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
437 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
439 #elif defined(SANSA_FUZE)
440 #define UI_TITLE "Sansa Fuze"
441 #define UI_WIDTH 279 /* width of GUI window */
442 #define UI_HEIGHT 449 /* height of GUI window */
443 /* high-colour */
444 #define UI_LCD_POSX 30 /* x position of lcd */
445 #define UI_LCD_POSY 31 /* y position of lcd */
446 #define UI_LCD_WIDTH LCD_WIDTH
447 #define UI_LCD_HEIGHT LCD_HEIGHT
449 #elif defined(SANSA_CLIP)
450 #define UI_TITLE "Sansa Clip"
451 #define UI_WIDTH 205 /* width of GUI window */
452 #define UI_HEIGHT 325 /* height of GUI window */
453 #define UI_LCD_POSX 38 /* x position of lcd */
454 #define UI_LCD_POSY 38 /* y position of lcd */
455 #define UI_LCD_WIDTH 128
456 #define UI_LCD_HEIGHT 64
457 #define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */
458 #define UI_LCD_BGCOLORLIGHT 0, 0, 0 /* bkgnd color of LCD (backlight) */
459 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
460 #define UI_LCD_FGCOLORLIGHT 13, 226, 229 /* foreground color of LCD (backlight) */
462 #endif
463 extern SDL_Surface *gui_surface;
464 extern bool background; /* True if the background image is enabled */
465 extern int display_zoom;
467 #endif /* #ifndef __UISDL_H__ */