blob: 625258a86fc844e4660e1b32db46002654936351 [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 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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.
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000016 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef __UISDL_H__
23#define __UISDL_H__
24
Dan Evertonb585e872006-02-09 21:49:28 +000025#include <stdbool.h>
26#include "SDL.h"
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000027
Jens Arnolda57608c2006-02-08 13:54:21 +000028/* colour definitions are R, G, B */
29
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000030#if defined(ARCHOS_RECORDER)
31#define UI_TITLE "Jukebox Recorder"
Daniel Stenberg4582f232006-03-19 06:59:36 +000032#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000036#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000038#define UI_LCD_POSX 80 /* x position of lcd */
39#define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000040#define UI_LCD_WIDTH 112
Daniel Stenberg4582f232006-03-19 06:59:36 +000041#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000042
43#elif defined(ARCHOS_PLAYER)
44#define UI_TITLE "Jukebox Player"
Daniel Stenberg4582f232006-03-19 06:59:36 +000045#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000049#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000051#define UI_LCD_POSX 75 /* x position of lcd */
52#define UI_LCD_POSY 116 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000053#define UI_LCD_WIDTH 132
Jens Arnold3e496e32006-02-20 00:31:10 +000054#define UI_LCD_HEIGHT 64
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000055
56#elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
57#define UI_TITLE "Jukebox FM Recorder"
Daniel Stenberg4582f232006-03-19 06:59:36 +000058#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000062#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000064#define UI_LCD_POSX 87 /* x position of lcd */
65#define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000066#define UI_LCD_WIDTH 112
Daniel Stenberg4582f232006-03-19 06:59:36 +000067#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000068
69#elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
70#define UI_TITLE "Ondio"
Daniel Stenberg4582f232006-03-19 06:59:36 +000071#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) */
Jens Arnoldae0c1af2006-06-03 12:09:12 +000074#define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000075#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000077#define UI_LCD_POSX 21 /* x position of lcd */
78#define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000079#define UI_LCD_WIDTH 112
Daniel Stenberg4582f232006-03-19 06:59:36 +000080#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000081
82#elif defined(IRIVER_H120) || defined(IRIVER_H100)
83#define UI_TITLE "iriver H1x0"
Daniel Stenberg4582f232006-03-19 06:59:36 +000084#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000088#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000090#define UI_LCD_POSX 109 /* x position of lcd */
91#define UI_LCD_POSY 23 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000092#define UI_LCD_WIDTH 160
93#define UI_LCD_HEIGHT 128
Daniel Stenberg4582f232006-03-19 06:59:36 +000094#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +000096#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +000098#define UI_REMOTE_POSX 50 /* x position of remote lcd */
99#define UI_REMOTE_POSY 403 /* y position of remote lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000100#define UI_REMOTE_WIDTH 128
101#define UI_REMOTE_HEIGHT 64
102
Dan Evertonb585e872006-02-09 21:49:28 +0000103#elif defined(IRIVER_H300)
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000104#define UI_TITLE "iriver H300"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000105#define UI_WIDTH 288 /* width of GUI window */
106#define UI_HEIGHT 581 /* height of GUI window */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000107/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000108#define UI_LCD_POSX 26 /* x position of lcd */
109#define UI_LCD_POSY 36 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000110#define UI_LCD_WIDTH 220
111#define UI_LCD_HEIGHT 176
Daniel Stenberg4582f232006-03-19 06:59:36 +0000112#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 */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000116#define UI_REMOTE_WIDTH 128
117#define UI_REMOTE_HEIGHT 64
118
Jens Arnold729b25c2007-08-05 20:43:54 +0000119#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000125#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) */
Jens Arnold729b25c2007-08-05 20:43:54 +0000127#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
131
Jens Arnoldedc19fb2006-10-16 18:15:36 +0000132#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000138#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) */
Jens Arnoldedc19fb2006-10-16 18:15:36 +0000140#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
144
Dave Chapman8ad2df82006-02-09 00:48:53 +0000145#elif defined(IPOD_4G)
146#define UI_TITLE "iPod 4G"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000147#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000151#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) */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000153#define UI_LCD_POSX 19 /* x position of lcd */
154#define UI_LCD_POSY 14 /* y position of lcd */
Dave Chapman8ad2df82006-02-09 00:48:53 +0000155#define UI_LCD_WIDTH 160
156#define UI_LCD_HEIGHT 128
157
Jens Arnold80865f22006-04-02 19:07:27 +0000158#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) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000164#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) */
Jens Arnold80865f22006-04-02 19:07:27 +0000166#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
170
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000171#elif defined(IPOD_COLOR)
172#define UI_TITLE "iPod Color"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000173#define UI_WIDTH 261 /* width of GUI window */
174#define UI_HEIGHT 493 /* height of GUI window */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000175/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000176#define UI_LCD_POSX 21 /* x position of lcd */
177#define UI_LCD_POSY 16 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000178#define UI_LCD_WIDTH 220
179#define UI_LCD_HEIGHT 176
180
181#elif defined(IPOD_NANO)
182#define UI_TITLE "iPod Nano"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000183#define UI_WIDTH 199 /* width of GUI window */
184#define UI_HEIGHT 421 /* height of GUI window */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000185/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000186#define UI_LCD_POSX 13 /* x position of lcd */
187#define UI_LCD_POSY 14 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000188#define UI_LCD_WIDTH 176
189#define UI_LCD_HEIGHT 132
190
Dan Everton3ba00602006-02-13 21:46:28 +0000191#elif defined(IPOD_VIDEO)
192#define UI_TITLE "iPod Video"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000193#define UI_WIDTH 350 /* width of GUI window */
194#define UI_HEIGHT 591 /* height of GUI window */
Dan Everton3ba00602006-02-13 21:46:28 +0000195/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000196#define UI_LCD_POSX 14 /* x position of lcd */
197#define UI_LCD_POSY 12 /* y position of lcd */
Dan Everton3ba00602006-02-13 21:46:28 +0000198#define UI_LCD_WIDTH 320
199#define UI_LCD_HEIGHT 240
200
Linus Nielsen Feltzing93941752006-02-04 22:37:44 +0000201#elif defined(IAUDIO_X5)
202#define UI_TITLE "iAudio X5"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000203#define UI_WIDTH 300 /* width of GUI window */
Jens Arnold05ddd9a2006-07-28 07:35:45 +0000204#define UI_HEIGHT 558 /* height of GUI window */
205/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000206#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 */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000210#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
Jens Arnold05ddd9a2006-07-28 07:35:45 +0000211#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
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000216
Jens Arnold88760182007-03-05 00:04:00 +0000217#elif defined(IAUDIO_M5)
218#define UI_TITLE "iAudio M5"
Jens Arnold4bd75312007-03-05 18:36:17 +0000219#define UI_WIDTH 374 /* width of GUI window */
220#define UI_HEIGHT 650 /* height of GUI window */
Jens Arnold88760182007-03-05 00:04:00 +0000221/* high-colour */
Jens Arnold4bd75312007-03-05 18:36:17 +0000222#define UI_LCD_POSX 82 /* x position of lcd */
223#define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */
Jens Arnold88760182007-03-05 00:04:00 +0000224#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) */
Robert Kukla2aa48042008-03-02 22:00:39 +0000226#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) */
Jens Arnold88760182007-03-05 00:04:00 +0000228#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) */
Jens Arnold4bd75312007-03-05 18:36:17 +0000232#define UI_REMOTE_POSX 59 /* x position of remote lcd */
233#define UI_REMOTE_POSY 509 /* y position of remote lcd */
Jens Arnold88760182007-03-05 00:04:00 +0000234#define UI_REMOTE_WIDTH 128
235#define UI_REMOTE_HEIGHT 96
236
Jens Arnold919c2062008-03-14 00:17:59 +0000237#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 */
249
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000250#elif defined(GIGABEAT_F)
251#define UI_TITLE "Toshiba Gigabeat"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000252#define UI_WIDTH 401 /* width of GUI window */
253#define UI_HEIGHT 655 /* height of GUI window */
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000254/* high-colour */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000255#define UI_LCD_POSX 48 /* x position of lcd */
256#define UI_LCD_POSY 60 /* y position of lcd */
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000257#define UI_LCD_WIDTH 240
258#define UI_LCD_HEIGHT 320
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000259
Will Robertsonfffa2692008-02-08 08:33:17 +0000260#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
269
Karl Kurbjunfdbc01c2007-10-21 23:12:17 +0000270#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
285
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000286#elif defined(IRIVER_H10)
Barry Wardell99c2dc52006-08-19 19:21:17 +0000287#define UI_TITLE "iriver H10 20Gb"
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000288#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 */
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000295
Barry Wardell99c2dc52006-08-19 19:21:17 +0000296#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 */
305
Barry Wardell24f4a2a2006-10-26 13:38:09 +0000306#elif defined(SANSA_E200)
307#define UI_TITLE "Sansa e200"
308#define UI_WIDTH 260 /* width of GUI window */
309#define UI_HEIGHT 502 /* height of GUI window */
310/* high-colour */
311#define UI_LCD_POSX 42 /* x position of lcd */
312#define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
313#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
314#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
315
Mark Arigoe14a7602007-09-08 03:10:22 +0000316#elif defined(SANSA_C200)
317#define UI_TITLE "Sansa c200"
318#define UI_WIDTH 350 /* width of GUI window */
319#define UI_HEIGHT 152 /* height of GUI window */
320/* high-colour */
321#define UI_LCD_POSX 42 /* x position of lcd */
322#define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */
323#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
324#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
325
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000326#elif defined(IRIVER_IFP7XX)
327#define UI_TITLE "iriver iFP7xx"
328#define UI_WIDTH 425 /* width of GUI window */
329#define UI_HEIGHT 183 /* height of GUI window */
330#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
331#define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000332#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
333#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000334#define UI_LCD_POSX 115 /* x position of lcd */
335#define UI_LCD_POSY 54 /* y position of lcd */
336#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
337#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
338
Dave Chapmand64e6262007-01-14 13:48:09 +0000339#elif defined(ARCHOS_AV300)
340#define UI_TITLE "Archos AV300"
341/* We are temporarily using a 2bpp LCD driver and dummy bitmap */
342#define UI_WIDTH 420 /* width of GUI window */
343#define UI_HEIGHT 340 /* height of GUI window */
344#define UI_LCD_POSX 50 /* x position of lcd */
345#define UI_LCD_POSY 50 /* y position of lcd */
346#define UI_LCD_WIDTH 320
347#define UI_LCD_HEIGHT 240
348#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
349#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000350#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
351#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Dave Chapmand64e6262007-01-14 13:48:09 +0000352
Robert Kuklac1791a52008-01-20 22:57:49 +0000353#elif defined(MROBE_100)
354#define UI_TITLE "Olympus M:Robe 100"
355#define UI_WIDTH 247 /* width of GUI window */
356#define UI_HEIGHT 416 /* height of GUI window */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000357#define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */
358#define UI_LCD_BGCOLORLIGHT 94, 2, 2 /* bkgnd color of LCD (backlight) */
359#define UI_LCD_FGCOLOR 50, 50, 50 /* foreground color of LCD (no backlight) */
360#define UI_LCD_FGCOLORLIGHT 241, 6, 3 /* foreground color of LCD (backlight) */
Robert Kuklac1791a52008-01-20 22:57:49 +0000361#define UI_LCD_POSX 43 /* x position of lcd */
362#define UI_LCD_POSY 25 /* y position of lcd */
363#define UI_LCD_WIDTH 160
364#define UI_LCD_HEIGHT 128
Rob Purchasefa85aa82008-01-22 22:48:36 +0000365
366#elif defined(COWON_D2)
367#define UI_TITLE "Cowon D2"
Rob Purchased8e3abf2008-01-23 22:19:53 +0000368#define UI_WIDTH 472 /* width of GUI window */
369#define UI_HEIGHT 368 /* height of GUI window */
370#define UI_LCD_POSX 58 /* x position of lcd */
371#define UI_LCD_POSY 67 /* y position of lcd */
Rob Purchasefa85aa82008-01-22 22:48:36 +0000372#define UI_LCD_WIDTH 320
373#define UI_LCD_HEIGHT 240
374#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
375#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
Robert Kukla3e3e1d52008-03-02 21:28:26 +0000376#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
377#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
Rob Purchasefa85aa82008-01-22 22:48:36 +0000378
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000379#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
380#ifdef CREATIVE_ZVM
381 #define UI_TITLE "Creative Zen Vision:M 30GB"
382#else
383 #define UI_TITLE "Creative Zen Vision:M 60GB"
384#endif
Maurus Cuelenaere02883e02008-05-14 21:14:06 +0000385#define UI_WIDTH 383 /* width of GUI window */
386#define UI_HEIGHT 643 /* height of GUI window */
387#define UI_LCD_POSX 31 /* x position of lcd */
388#define UI_LCD_POSY 62 /* y position of lcd */
389#define UI_LCD_WIDTH 320
390#define UI_LCD_HEIGHT 240
391#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
392#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
393#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
394#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
395
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000396#elif defined(CREATIVE_ZV)
397#define UI_TITLE "Creative Zen Vision"
398#define UI_WIDTH 1054 /* width of GUI window */
399#define UI_HEIGHT 643 /* height of GUI window */
400#define UI_LCD_POSX 129 /* x position of lcd */
401#define UI_LCD_POSY 85 /* y position of lcd */
402#define UI_LCD_WIDTH 640
403#define UI_LCD_HEIGHT 480
404#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
405#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
406#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
407#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
408
Marcoen Hirschberg7b10ef92008-06-27 23:24:34 +0000409#elif defined(MEIZU_M6SL)
410#define UI_TITLE "Meizu M6"
411#define UI_WIDTH 512 /* width of GUI window */
412#define UI_HEIGHT 322 /* height of GUI window */
413#define UI_LCD_POSX 39 /* x position of lcd */
414#define UI_LCD_POSY 38 /* y position of lcd */
415#define UI_LCD_WIDTH 320
416#define UI_LCD_HEIGHT 240
417#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
418#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
419#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
420#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
421
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000422#endif
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000423extern SDL_Surface *gui_surface;
Dan Evertonee2019d2006-02-09 11:17:52 +0000424extern bool background; /* True if the background image is enabled */
Dan Evertonb585e872006-02-09 21:49:28 +0000425extern int display_zoom;
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000426
Daniel Stenberg4582f232006-03-19 06:59:36 +0000427#endif /* #ifndef __UISDL_H__ */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000428