blob: dde505bf91764db8703e84b87597b75c217c7d26 [file] [log] [blame]
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 Dan Everton
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 __UISDL_H__
21#define __UISDL_H__
22
Dan Evertonb585e872006-02-09 21:49:28 +000023#include <stdbool.h>
24#include "SDL.h"
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000025
Jens Arnolda57608c2006-02-08 13:54:21 +000026/* colour definitions are R, G, B */
27
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000028#if defined(ARCHOS_RECORDER)
29#define UI_TITLE "Jukebox Recorder"
Daniel Stenberg4582f232006-03-19 06:59:36 +000030#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000034#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
35#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000036#define UI_LCD_POSX 80 /* x position of lcd */
37#define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000038#define UI_LCD_WIDTH 112
Daniel Stenberg4582f232006-03-19 06:59:36 +000039#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000040
41#elif defined(ARCHOS_PLAYER)
42#define UI_TITLE "Jukebox Player"
Daniel Stenberg4582f232006-03-19 06:59:36 +000043#define UI_WIDTH 284 /* width of GUI window */
44#define UI_HEIGHT 420 /* height of GUI window */
45#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
46#define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000047#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
48#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000049#define UI_LCD_POSX 75 /* x position of lcd */
50#define UI_LCD_POSY 116 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000051#define UI_LCD_WIDTH 132
Jens Arnold3e496e32006-02-20 00:31:10 +000052#define UI_LCD_HEIGHT 64
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000053
54#elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
55#define UI_TITLE "Jukebox FM Recorder"
Daniel Stenberg4582f232006-03-19 06:59:36 +000056#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000060#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
61#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000062#define UI_LCD_POSX 87 /* x position of lcd */
63#define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000064#define UI_LCD_WIDTH 112
Daniel Stenberg4582f232006-03-19 06:59:36 +000065#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000066
67#elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
68#define UI_TITLE "Ondio"
Daniel Stenberg4582f232006-03-19 06:59:36 +000069#define UI_WIDTH 155 /* width of GUI window */
70#define UI_HEIGHT 334 /* height of GUI window */
71#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
Jens Arnoldae0c1af2006-06-03 12:09:12 +000072#define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000073#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
74#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000075#define UI_LCD_POSX 21 /* x position of lcd */
76#define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000077#define UI_LCD_WIDTH 112
Daniel Stenberg4582f232006-03-19 06:59:36 +000078#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000079
80#elif defined(IRIVER_H120) || defined(IRIVER_H100)
81#define UI_TITLE "iriver H1x0"
Daniel Stenberg4582f232006-03-19 06:59:36 +000082#define UI_WIDTH 379 /* width of GUI window */
83#define UI_HEIGHT 508 /* height of GUI window */
84#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
85#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000086#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
87#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000088#define UI_LCD_POSX 109 /* x position of lcd */
89#define UI_LCD_POSY 23 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000090#define UI_LCD_WIDTH 160
91#define UI_LCD_HEIGHT 128
Daniel Stenberg4582f232006-03-19 06:59:36 +000092#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
93#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000094#define UI_REMOTE_FGCOLOR 0, 0, 0 /* foreground color of remote LCD (no backlight) */
95#define UI_REMOTE_FGCOLORLIGHT 0, 0, 0 /* foreground color of remote LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000096#define UI_REMOTE_POSX 50 /* x position of remote lcd */
97#define UI_REMOTE_POSY 403 /* y position of remote lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000098#define UI_REMOTE_WIDTH 128
99#define UI_REMOTE_HEIGHT 64
100
Dan Evertonb585e872006-02-09 21:49:28 +0000101#elif defined(IRIVER_H300)
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000102#define UI_TITLE "iriver H300"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000103#define UI_WIDTH 288 /* width of GUI window */
104#define UI_HEIGHT 581 /* height of GUI window */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000105/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000106#define UI_LCD_POSX 26 /* x position of lcd */
107#define UI_LCD_POSY 36 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000108#define UI_LCD_WIDTH 220
109#define UI_LCD_HEIGHT 176
Daniel Stenberg4582f232006-03-19 06:59:36 +0000110#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
111#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
112#define UI_REMOTE_POSX 12 /* x position of remote lcd */
113#define UI_REMOTE_POSY 478 /* y position of remote lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000114#define UI_REMOTE_WIDTH 128
115#define UI_REMOTE_HEIGHT 64
116
Jens Arnold729b25c2007-08-05 20:43:54 +0000117#elif defined(IPOD_1G2G)
118#define UI_TITLE "iPod 1G/2G"
119#define UI_WIDTH 224 /* width of GUI window */
120#define UI_HEIGHT 382 /* height of GUI window */
121#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
122#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000123#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
124#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Jens Arnold729b25c2007-08-05 20:43:54 +0000125#define UI_LCD_POSX 32 /* x position of lcd */
126#define UI_LCD_POSY 12 /* y position of lcd */
127#define UI_LCD_WIDTH 160
128#define UI_LCD_HEIGHT 128
129
Jens Arnoldedc19fb2006-10-16 18:15:36 +0000130#elif defined(IPOD_3G)
131#define UI_TITLE "iPod 3G"
132#define UI_WIDTH 218 /* width of GUI window */
133#define UI_HEIGHT 389 /* height of GUI window */
134#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
135#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000136#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
137#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Jens Arnoldedc19fb2006-10-16 18:15:36 +0000138#define UI_LCD_POSX 29 /* x position of lcd */
139#define UI_LCD_POSY 16 /* y position of lcd */
140#define UI_LCD_WIDTH 160
141#define UI_LCD_HEIGHT 128
142
Dave Chapman8ad2df82006-02-09 00:48:53 +0000143#elif defined(IPOD_4G)
144#define UI_TITLE "iPod 4G"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000145#define UI_WIDTH 196 /* width of GUI window */
146#define UI_HEIGHT 370 /* height of GUI window */
147#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
148#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000149#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
150#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000151#define UI_LCD_POSX 19 /* x position of lcd */
152#define UI_LCD_POSY 14 /* y position of lcd */
Dave Chapman8ad2df82006-02-09 00:48:53 +0000153#define UI_LCD_WIDTH 160
154#define UI_LCD_HEIGHT 128
155
Jens Arnold80865f22006-04-02 19:07:27 +0000156#elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
157#define UI_TITLE "iPod mini"
158#define UI_WIDTH 191 /* width of GUI window */
159#define UI_HEIGHT 365 /* height of GUI window */
160#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
161#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000162#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
163#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Jens Arnold80865f22006-04-02 19:07:27 +0000164#define UI_LCD_POSX 24 /* x position of lcd */
165#define UI_LCD_POSY 17 /* y position of lcd */
166#define UI_LCD_WIDTH 138
167#define UI_LCD_HEIGHT 110
168
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000169#elif defined(IPOD_COLOR)
170#define UI_TITLE "iPod Color"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000171#define UI_WIDTH 261 /* width of GUI window */
172#define UI_HEIGHT 493 /* height of GUI window */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000173/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000174#define UI_LCD_POSX 21 /* x position of lcd */
175#define UI_LCD_POSY 16 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000176#define UI_LCD_WIDTH 220
177#define UI_LCD_HEIGHT 176
178
179#elif defined(IPOD_NANO)
180#define UI_TITLE "iPod Nano"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000181#define UI_WIDTH 199 /* width of GUI window */
182#define UI_HEIGHT 421 /* height of GUI window */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000183/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000184#define UI_LCD_POSX 13 /* x position of lcd */
185#define UI_LCD_POSY 14 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000186#define UI_LCD_WIDTH 176
187#define UI_LCD_HEIGHT 132
188
Dan Everton3ba00602006-02-13 21:46:28 +0000189#elif defined(IPOD_VIDEO)
190#define UI_TITLE "iPod Video"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000191#define UI_WIDTH 350 /* width of GUI window */
192#define UI_HEIGHT 591 /* height of GUI window */
Dan Everton3ba00602006-02-13 21:46:28 +0000193/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000194#define UI_LCD_POSX 14 /* x position of lcd */
195#define UI_LCD_POSY 12 /* y position of lcd */
Dan Everton3ba00602006-02-13 21:46:28 +0000196#define UI_LCD_WIDTH 320
197#define UI_LCD_HEIGHT 240
198
Linus Nielsen Feltzing93941752006-02-04 22:37:44 +0000199#elif defined(IAUDIO_X5)
200#define UI_TITLE "iAudio X5"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000201#define UI_WIDTH 300 /* width of GUI window */
Jens Arnold05ddd9a2006-07-28 07:35:45 +0000202#define UI_HEIGHT 558 /* height of GUI window */
203/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000204#define UI_LCD_POSX 55 /* x position of lcd */
205#define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */
206#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
207#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000208#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
Jens Arnold05ddd9a2006-07-28 07:35:45 +0000209#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
210#define UI_REMOTE_POSX 12 /* x position of remote lcd */
211#define UI_REMOTE_POSY 462 /* y position of remote lcd */
212#define UI_REMOTE_WIDTH 128
213#define UI_REMOTE_HEIGHT 96
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000214
Jens Arnold88760182007-03-05 00:04:00 +0000215#elif defined(IAUDIO_M5)
216#define UI_TITLE "iAudio M5"
Jens Arnold4bd75312007-03-05 18:36:17 +0000217#define UI_WIDTH 374 /* width of GUI window */
218#define UI_HEIGHT 650 /* height of GUI window */
Jens Arnold88760182007-03-05 00:04:00 +0000219/* high-colour */
Jens Arnold4bd75312007-03-05 18:36:17 +0000220#define UI_LCD_POSX 82 /* x position of lcd */
221#define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */
Jens Arnold88760182007-03-05 00:04:00 +0000222#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
223#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
Robert Kukla2aa48042008-03-02 22:00:39 +0000224#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
225#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Jens Arnold88760182007-03-05 00:04:00 +0000226#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
227#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
228#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
229#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
Jens Arnold4bd75312007-03-05 18:36:17 +0000230#define UI_REMOTE_POSX 59 /* x position of remote lcd */
231#define UI_REMOTE_POSY 509 /* y position of remote lcd */
Jens Arnold88760182007-03-05 00:04:00 +0000232#define UI_REMOTE_WIDTH 128
233#define UI_REMOTE_HEIGHT 96
234
Jens Arnold919c2062008-03-14 00:17:59 +0000235#elif defined(IAUDIO_M3)
236#define UI_TITLE "iAudio M3"
237#define UI_WIDTH 397 /* width of GUI window */
238#define UI_HEIGHT 501 /* height of GUI window */
239#define UI_LCD_POSX 92 /* x position of lcd */
240#define UI_LCD_POSY 348 /* y position of lcd */
241#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no bklight) */
242#define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (bklight) */
243#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
244#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
245#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
246#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
247
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000248#elif defined(GIGABEAT_F)
249#define UI_TITLE "Toshiba Gigabeat"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000250#define UI_WIDTH 401 /* width of GUI window */
251#define UI_HEIGHT 655 /* height of GUI window */
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000252/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000253#define UI_LCD_POSX 48 /* x position of lcd */
254#define UI_LCD_POSY 60 /* y position of lcd */
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000255#define UI_LCD_WIDTH 240
256#define UI_LCD_HEIGHT 320
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000257
Will Robertsonfffa2692008-02-08 08:33:17 +0000258#elif defined(GIGABEAT_S)
259#define UI_TITLE "Toshiba Gigabeat"
260#define UI_WIDTH 450 /* width of GUI window */
261#define UI_HEIGHT 688 /* height of GUI window */
262/* high-colour */
263#define UI_LCD_POSX 96 /* x position of lcd */
264#define UI_LCD_POSY 90 /* y position of lcd */
265#define UI_LCD_WIDTH 240
266#define UI_LCD_HEIGHT 320
267
Karl Kurbjunfdbc01c2007-10-21 23:12:17 +0000268#elif defined(MROBE_500)
269#define UI_TITLE "Olympus M:Robe 500"
270#define UI_WIDTH 401 /* width of GUI window */
271#define UI_HEIGHT 655 /* height of GUI window */
272/* high-colour */
273#define UI_LCD_POSX 48 /* x position of lcd */
274#define UI_LCD_POSY 60 /* y position of lcd */
275#define UI_LCD_WIDTH LCD_WIDTH
276#define UI_LCD_HEIGHT LCD_HEIGHT
277#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
278#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
279#define UI_REMOTE_POSX 50 /* x position of remote lcd */
280#define UI_REMOTE_POSY 403 /* y position of remote lcd */
281#define UI_REMOTE_WIDTH 79
282#define UI_REMOTE_HEIGHT 16
283
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000284#elif defined(IRIVER_H10)
Barry Wardell99c2dc52006-08-19 19:21:17 +0000285#define UI_TITLE "iriver H10 20Gb"
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000286#define UI_WIDTH 392 /* width of GUI window */
287#define UI_HEIGHT 391 /* height of GUI window */
288/* high-colour */
289#define UI_LCD_POSX 111 /* x position of lcd */
290#define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */
291#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
292#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000293
Barry Wardell99c2dc52006-08-19 19:21:17 +0000294#elif defined(IRIVER_H10_5GB)
295#define UI_TITLE "iriver H10 5/6Gb"
296#define UI_WIDTH 353 /* width of GUI window */
297#define UI_HEIGHT 460 /* height of GUI window */
298/* high-colour */
299#define UI_LCD_POSX 112 /* x position of lcd */
300#define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */
301#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
302#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
303
Barry Wardell24f4a2a2006-10-26 13:38:09 +0000304#elif defined(SANSA_E200)
305#define UI_TITLE "Sansa e200"
306#define UI_WIDTH 260 /* width of GUI window */
307#define UI_HEIGHT 502 /* height of GUI window */
308/* high-colour */
309#define UI_LCD_POSX 42 /* x position of lcd */
310#define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
311#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
312#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
313
Mark Arigoe14a7602007-09-08 03:10:22 +0000314#elif defined(SANSA_C200)
315#define UI_TITLE "Sansa c200"
316#define UI_WIDTH 350 /* width of GUI window */
317#define UI_HEIGHT 152 /* height of GUI window */
318/* high-colour */
319#define UI_LCD_POSX 42 /* x position of lcd */
320#define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */
321#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
322#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
323
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000324#elif defined(IRIVER_IFP7XX)
325#define UI_TITLE "iriver iFP7xx"
326#define UI_WIDTH 425 /* width of GUI window */
327#define UI_HEIGHT 183 /* height of GUI window */
328#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
329#define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000330#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
331#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000332#define UI_LCD_POSX 115 /* x position of lcd */
333#define UI_LCD_POSY 54 /* y position of lcd */
334#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
335#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
336
Dave Chapmand64e6262007-01-14 13:48:09 +0000337#elif defined(ARCHOS_AV300)
338#define UI_TITLE "Archos AV300"
339/* We are temporarily using a 2bpp LCD driver and dummy bitmap */
340#define UI_WIDTH 420 /* width of GUI window */
341#define UI_HEIGHT 340 /* height of GUI window */
342#define UI_LCD_POSX 50 /* x position of lcd */
343#define UI_LCD_POSY 50 /* y position of lcd */
344#define UI_LCD_WIDTH 320
345#define UI_LCD_HEIGHT 240
346#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
347#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000348#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
349#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Dave Chapmand64e6262007-01-14 13:48:09 +0000350
Robert Kuklac1791a52008-01-20 22:57:49 +0000351#elif defined(MROBE_100)
352#define UI_TITLE "Olympus M:Robe 100"
353#define UI_WIDTH 247 /* width of GUI window */
354#define UI_HEIGHT 416 /* height of GUI window */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000355#define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */
356#define UI_LCD_BGCOLORLIGHT 94, 2, 2 /* bkgnd color of LCD (backlight) */
357#define UI_LCD_FGCOLOR 50, 50, 50 /* foreground color of LCD (no backlight) */
358#define UI_LCD_FGCOLORLIGHT 241, 6, 3 /* foreground color of LCD (backlight) */
Robert Kuklac1791a52008-01-20 22:57:49 +0000359#define UI_LCD_POSX 43 /* x position of lcd */
360#define UI_LCD_POSY 25 /* y position of lcd */
361#define UI_LCD_WIDTH 160
362#define UI_LCD_HEIGHT 128
Rob Purchasefa85aa82008-01-22 22:48:36 +0000363
364#elif defined(COWON_D2)
365#define UI_TITLE "Cowon D2"
Rob Purchased8e3abf2008-01-23 22:19:53 +0000366#define UI_WIDTH 472 /* width of GUI window */
367#define UI_HEIGHT 368 /* height of GUI window */
368#define UI_LCD_POSX 58 /* x position of lcd */
369#define UI_LCD_POSY 67 /* y position of lcd */
Rob Purchasefa85aa82008-01-22 22:48:36 +0000370#define UI_LCD_WIDTH 320
371#define UI_LCD_HEIGHT 240
372#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
373#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000374#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
375#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Rob Purchasefa85aa82008-01-22 22:48:36 +0000376
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000377#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
378#ifdef CREATIVE_ZVM
379 #define UI_TITLE "Creative Zen Vision:M 30GB"
380#else
381 #define UI_TITLE "Creative Zen Vision:M 60GB"
382#endif
Maurus Cuelenaere02883e02008-05-14 21:14:06 +0000383#define UI_WIDTH 383 /* width of GUI window */
384#define UI_HEIGHT 643 /* height of GUI window */
385#define UI_LCD_POSX 31 /* x position of lcd */
386#define UI_LCD_POSY 62 /* y position of lcd */
387#define UI_LCD_WIDTH 320
388#define UI_LCD_HEIGHT 240
389#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
390#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
391#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
392#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
393
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000394#elif defined(CREATIVE_ZV)
395#define UI_TITLE "Creative Zen Vision"
396#define UI_WIDTH 1054 /* width of GUI window */
397#define UI_HEIGHT 643 /* height of GUI window */
398#define UI_LCD_POSX 129 /* x position of lcd */
399#define UI_LCD_POSY 85 /* y position of lcd */
400#define UI_LCD_WIDTH 640
401#define UI_LCD_HEIGHT 480
402#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
403#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
404#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
405#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
406
Marcoen Hirschberg7b10ef92008-06-27 23:24:34 +0000407#elif defined(MEIZU_M6SL)
408#define UI_TITLE "Meizu M6"
409#define UI_WIDTH 512 /* width of GUI window */
410#define UI_HEIGHT 322 /* height of GUI window */
411#define UI_LCD_POSX 39 /* x position of lcd */
412#define UI_LCD_POSY 38 /* y position of lcd */
413#define UI_LCD_WIDTH 320
414#define UI_LCD_HEIGHT 240
415#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
416#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
417#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
418#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
419
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000420#endif
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000421extern SDL_Surface *gui_surface;
Dan Evertonee2019d2006-02-09 11:17:52 +0000422extern bool background; /* True if the background image is enabled */
Dan Evertonb585e872006-02-09 21:49:28 +0000423extern int display_zoom;
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000424
Daniel Stenberg4582f232006-03-19 06:59:36 +0000425#endif /* #ifndef __UISDL_H__ */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000426