blob: 7289329d21ca36d30cf92f19cfd3a040aa5aeef1 [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>
Thomas Martitza305ca92009-09-24 23:04:15 +000026#include "SDL.h"
Karl Kurbjun4d418862009-06-13 20:59:03 +000027#include "config.h"
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000028
Jens Arnolda57608c2006-02-08 13:54:21 +000029/* colour definitions are R, G, B */
30
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000031#if defined(ARCHOS_RECORDER)
32#define UI_TITLE "Jukebox Recorder"
Daniel Stenberg4582f232006-03-19 06:59:36 +000033#define UI_WIDTH 270 /* width of GUI window */
34#define UI_HEIGHT 406 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000035#define UI_LCD_POSX 80 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +000036#define UI_LCD_POSY 104 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000037
38#elif defined(ARCHOS_PLAYER)
39#define UI_TITLE "Jukebox Player"
Daniel Stenberg4582f232006-03-19 06:59:36 +000040#define UI_WIDTH 284 /* width of GUI window */
41#define UI_HEIGHT 420 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000042#define UI_LCD_POSX 75 /* x position of lcd */
43#define UI_LCD_POSY 116 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000044
45#elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
46#define UI_TITLE "Jukebox FM Recorder"
Daniel Stenberg4582f232006-03-19 06:59:36 +000047#define UI_WIDTH 285 /* width of GUI window */
48#define UI_HEIGHT 414 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000049#define UI_LCD_POSX 87 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +000050#define UI_LCD_POSY 77 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000051
52#elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
53#define UI_TITLE "Ondio"
Daniel Stenberg4582f232006-03-19 06:59:36 +000054#define UI_WIDTH 155 /* width of GUI window */
55#define UI_HEIGHT 334 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000056#define UI_LCD_POSX 21 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +000057#define UI_LCD_POSY 82 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000058
59#elif defined(IRIVER_H120) || defined(IRIVER_H100)
60#define UI_TITLE "iriver H1x0"
Daniel Stenberg4582f232006-03-19 06:59:36 +000061#define UI_WIDTH 379 /* width of GUI window */
62#define UI_HEIGHT 508 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000063#define UI_LCD_POSX 109 /* x position of lcd */
64#define UI_LCD_POSY 23 /* y position of lcd */
Daniel Stenberg4582f232006-03-19 06:59:36 +000065#define UI_REMOTE_POSX 50 /* x position of remote lcd */
66#define UI_REMOTE_POSY 403 /* y position of remote lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000067
Dan Evertonb585e872006-02-09 21:49:28 +000068#elif defined(IRIVER_H300)
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000069#define UI_TITLE "iriver H300"
Daniel Stenberg4582f232006-03-19 06:59:36 +000070#define UI_WIDTH 288 /* width of GUI window */
71#define UI_HEIGHT 581 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000072#define UI_LCD_POSX 26 /* x position of lcd */
73#define UI_LCD_POSY 36 /* y position of lcd */
Daniel Stenberg4582f232006-03-19 06:59:36 +000074#define UI_REMOTE_POSX 12 /* x position of remote lcd */
75#define UI_REMOTE_POSY 478 /* y position of remote lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +000076
Jens Arnold729b25c2007-08-05 20:43:54 +000077#elif defined(IPOD_1G2G)
78#define UI_TITLE "iPod 1G/2G"
79#define UI_WIDTH 224 /* width of GUI window */
80#define UI_HEIGHT 382 /* height of GUI window */
Jens Arnold729b25c2007-08-05 20:43:54 +000081#define UI_LCD_POSX 32 /* x position of lcd */
82#define UI_LCD_POSY 12 /* y position of lcd */
Jens Arnold729b25c2007-08-05 20:43:54 +000083
Jens Arnoldedc19fb2006-10-16 18:15:36 +000084#elif defined(IPOD_3G)
85#define UI_TITLE "iPod 3G"
86#define UI_WIDTH 218 /* width of GUI window */
87#define UI_HEIGHT 389 /* height of GUI window */
Jens Arnoldedc19fb2006-10-16 18:15:36 +000088#define UI_LCD_POSX 29 /* x position of lcd */
89#define UI_LCD_POSY 16 /* y position of lcd */
Jens Arnoldedc19fb2006-10-16 18:15:36 +000090
Dave Chapman8ad2df82006-02-09 00:48:53 +000091#elif defined(IPOD_4G)
92#define UI_TITLE "iPod 4G"
Daniel Stenberg4582f232006-03-19 06:59:36 +000093#define UI_WIDTH 196 /* width of GUI window */
94#define UI_HEIGHT 370 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +000095#define UI_LCD_POSX 19 /* x position of lcd */
96#define UI_LCD_POSY 14 /* y position of lcd */
Dave Chapman8ad2df82006-02-09 00:48:53 +000097
Jens Arnold80865f22006-04-02 19:07:27 +000098#elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
99#define UI_TITLE "iPod mini"
100#define UI_WIDTH 191 /* width of GUI window */
101#define UI_HEIGHT 365 /* height of GUI window */
Jens Arnold80865f22006-04-02 19:07:27 +0000102#define UI_LCD_POSX 24 /* x position of lcd */
103#define UI_LCD_POSY 17 /* y position of lcd */
Jens Arnold80865f22006-04-02 19:07:27 +0000104
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000105#elif defined(IPOD_COLOR)
106#define UI_TITLE "iPod Color"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000107#define UI_WIDTH 261 /* width of GUI window */
108#define UI_HEIGHT 493 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000109#define UI_LCD_POSX 21 /* x position of lcd */
110#define UI_LCD_POSY 16 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000111
112#elif defined(IPOD_NANO)
113#define UI_TITLE "iPod Nano"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000114#define UI_WIDTH 199 /* width of GUI window */
115#define UI_HEIGHT 421 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000116#define UI_LCD_POSX 13 /* x position of lcd */
117#define UI_LCD_POSY 14 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000118
Dave Chapman81ef39b2009-10-13 20:51:28 +0000119#elif defined(IPOD_NANO2G)
120#define UI_TITLE "iPod Nano 2G"
Dave Chapmana5c1ee52009-10-14 21:40:28 +0000121#define UI_WIDTH 235 /* width of GUI window */
122#define UI_HEIGHT 537 /* height of GUI window */
123#define UI_LCD_POSX 29 /* x position of lcd */
124#define UI_LCD_POSY 33 /* y position of lcd */
Dave Chapman81ef39b2009-10-13 20:51:28 +0000125
Dan Everton3ba00602006-02-13 21:46:28 +0000126#elif defined(IPOD_VIDEO)
127#define UI_TITLE "iPod Video"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000128#define UI_WIDTH 350 /* width of GUI window */
129#define UI_HEIGHT 591 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000130#define UI_LCD_POSX 14 /* x position of lcd */
131#define UI_LCD_POSY 12 /* y position of lcd */
Dan Everton3ba00602006-02-13 21:46:28 +0000132
Michael Giacomelli0b0d3ee2012-11-25 22:54:06 +0100133#elif defined(IPOD_6G)
134#define UI_TITLE "iPod 6G"
135#define UI_WIDTH 350 /* width of GUI window */
136#define UI_HEIGHT 591 /* height of GUI window */
137#define UI_LCD_POSX 14 /* x position of lcd */
138#define UI_LCD_POSY 12 /* y position of lcd */
139
Linus Nielsen Feltzing93941752006-02-04 22:37:44 +0000140#elif defined(IAUDIO_X5)
141#define UI_TITLE "iAudio X5"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000142#define UI_WIDTH 300 /* width of GUI window */
Jens Arnold05ddd9a2006-07-28 07:35:45 +0000143#define UI_HEIGHT 558 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000144#define UI_LCD_POSX 55 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000145#define UI_LCD_POSY 61 /* y position of lcd */
Jens Arnold05ddd9a2006-07-28 07:35:45 +0000146#define UI_REMOTE_POSX 12 /* x position of remote lcd */
147#define UI_REMOTE_POSY 462 /* y position of remote lcd */
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000148
Jens Arnold88760182007-03-05 00:04:00 +0000149#elif defined(IAUDIO_M5)
150#define UI_TITLE "iAudio M5"
Jens Arnold4bd75312007-03-05 18:36:17 +0000151#define UI_WIDTH 374 /* width of GUI window */
152#define UI_HEIGHT 650 /* height of GUI window */
Jens Arnold4bd75312007-03-05 18:36:17 +0000153#define UI_LCD_POSX 82 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000154#define UI_LCD_POSY 74 /* y position of lcd */
Jens Arnold4bd75312007-03-05 18:36:17 +0000155#define UI_REMOTE_POSX 59 /* x position of remote lcd */
156#define UI_REMOTE_POSY 509 /* y position of remote lcd */
Jens Arnold88760182007-03-05 00:04:00 +0000157
Jens Arnold919c2062008-03-14 00:17:59 +0000158#elif defined(IAUDIO_M3)
159#define UI_TITLE "iAudio M3"
160#define UI_WIDTH 397 /* width of GUI window */
161#define UI_HEIGHT 501 /* height of GUI window */
162#define UI_LCD_POSX 92 /* x position of lcd */
163#define UI_LCD_POSY 348 /* y position of lcd */
Jens Arnold919c2062008-03-14 00:17:59 +0000164
Marcoen Hirschberg338e2bb2006-02-24 15:42:52 +0000165#elif defined(GIGABEAT_F)
166#define UI_TITLE "Toshiba Gigabeat"
Daniel Stenberg4582f232006-03-19 06:59:36 +0000167#define UI_WIDTH 401 /* width of GUI window */
168#define UI_HEIGHT 655 /* height of GUI window */
Daniel Stenberg4582f232006-03-19 06:59:36 +0000169#define UI_LCD_POSX 48 /* x position of lcd */
170#define UI_LCD_POSY 60 /* y position of lcd */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000171
Will Robertsonfffa2692008-02-08 08:33:17 +0000172#elif defined(GIGABEAT_S)
173#define UI_TITLE "Toshiba Gigabeat"
174#define UI_WIDTH 450 /* width of GUI window */
175#define UI_HEIGHT 688 /* height of GUI window */
Will Robertsonfffa2692008-02-08 08:33:17 +0000176#define UI_LCD_POSX 96 /* x position of lcd */
177#define UI_LCD_POSY 90 /* y position of lcd */
Will Robertsonfffa2692008-02-08 08:33:17 +0000178
Karl Kurbjunfdbc01c2007-10-21 23:12:17 +0000179#elif defined(MROBE_500)
Robert Kukla275a3002009-07-26 14:26:14 +0000180#if LCD_WIDTH==320
Karl Kurbjunfdbc01c2007-10-21 23:12:17 +0000181#define UI_TITLE "Olympus M:Robe 500"
Karl Kurbjun8ec87102009-04-18 01:58:52 +0000182#define UI_WIDTH 450 /* width of GUI window */
183#define UI_HEIGHT 350 /* height of GUI window */
184#define UI_LCD_POSX 65 /* x position of lcd */
185#define UI_LCD_POSY 30 /* y position of lcd */
Robert Kukla275a3002009-07-26 14:26:14 +0000186#define UI_REMOTE_POSX 36 /* x position of remote lcd */
187#define UI_REMOTE_POSY 318 /* y position of remote lcd */
Karl Kurbjun4d418862009-06-13 20:59:03 +0000188#else
189#define UI_TITLE "Olympus M:Robe 500"
Karl Kurbjun35ffefa2009-08-17 01:54:24 +0000190#define UI_WIDTH 895 /* width of GUI window */
191#define UI_HEIGHT 646 /* height of GUI window */
192#define UI_LCD_POSX 129 /* x position of lcd */
193#define UI_LCD_POSY 60 /* y position of lcd */
194#define UI_REMOTE_POSX 37 /* x position of remote lcd */
195#define UI_REMOTE_POSY 615 /* y position of remote lcd */
Karl Kurbjun4d418862009-06-13 20:59:03 +0000196#endif
Karl Kurbjunfdbc01c2007-10-21 23:12:17 +0000197
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000198#elif defined(IRIVER_H10)
Barry Wardell99c2dc52006-08-19 19:21:17 +0000199#define UI_TITLE "iriver H10 20Gb"
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000200#define UI_WIDTH 392 /* width of GUI window */
201#define UI_HEIGHT 391 /* height of GUI window */
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000202#define UI_LCD_POSX 111 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000203#define UI_LCD_POSY 30 /* y position of lcd */
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000204
Barry Wardell99c2dc52006-08-19 19:21:17 +0000205#elif defined(IRIVER_H10_5GB)
206#define UI_TITLE "iriver H10 5/6Gb"
207#define UI_WIDTH 353 /* width of GUI window */
208#define UI_HEIGHT 460 /* height of GUI window */
Barry Wardell99c2dc52006-08-19 19:21:17 +0000209#define UI_LCD_POSX 112 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000210#define UI_LCD_POSY 45 /* y position of lcd */
Barry Wardell99c2dc52006-08-19 19:21:17 +0000211
Dave Chapman74b935c2008-10-28 17:49:35 +0000212#elif defined(SANSA_E200) || defined(SANSA_E200V2)
213#ifdef SANSA_E200
Barry Wardell24f4a2a2006-10-26 13:38:09 +0000214#define UI_TITLE "Sansa e200"
Dave Chapman74b935c2008-10-28 17:49:35 +0000215#else
216#define UI_TITLE "Sansa e200v2"
217#endif
Barry Wardell24f4a2a2006-10-26 13:38:09 +0000218#define UI_WIDTH 260 /* width of GUI window */
219#define UI_HEIGHT 502 /* height of GUI window */
Barry Wardell24f4a2a2006-10-26 13:38:09 +0000220#define UI_LCD_POSX 42 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000221#define UI_LCD_POSY 37 /* y position of lcd */
Barry Wardell24f4a2a2006-10-26 13:38:09 +0000222
Rafaël Carréfa9339a2009-06-18 19:12:43 +0000223#elif defined(SANSA_C200) || defined(SANSA_C200V2)
224#ifdef SANSA_C200
Mark Arigoe14a7602007-09-08 03:10:22 +0000225#define UI_TITLE "Sansa c200"
Rafaël Carréfa9339a2009-06-18 19:12:43 +0000226#else
227#define UI_TITLE "Sansa c200v2"
228#endif
Mark Arigoe14a7602007-09-08 03:10:22 +0000229#define UI_WIDTH 350 /* width of GUI window */
230#define UI_HEIGHT 152 /* height of GUI window */
Mark Arigoe14a7602007-09-08 03:10:22 +0000231#define UI_LCD_POSX 42 /* x position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000232#define UI_LCD_POSY 35 /* y position of lcd */
Mark Arigoe14a7602007-09-08 03:10:22 +0000233
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000234#elif defined(IRIVER_IFP7XX)
235#define UI_TITLE "iriver iFP7xx"
236#define UI_WIDTH 425 /* width of GUI window */
237#define UI_HEIGHT 183 /* height of GUI window */
Tomasz Malesinskia19032c2006-08-18 19:14:11 +0000238#define UI_LCD_POSX 115 /* x position of lcd */
239#define UI_LCD_POSY 54 /* y position of lcd */
Jens Arnold0d935ce2009-02-09 00:32:59 +0000240
Dave Chapmand64e6262007-01-14 13:48:09 +0000241#elif defined(ARCHOS_AV300)
242#define UI_TITLE "Archos AV300"
243/* We are temporarily using a 2bpp LCD driver and dummy bitmap */
244#define UI_WIDTH 420 /* width of GUI window */
245#define UI_HEIGHT 340 /* height of GUI window */
246#define UI_LCD_POSX 50 /* x position of lcd */
247#define UI_LCD_POSY 50 /* y position of lcd */
Dave Chapmand64e6262007-01-14 13:48:09 +0000248
Robert Kuklac1791a52008-01-20 22:57:49 +0000249#elif defined(MROBE_100)
250#define UI_TITLE "Olympus M:Robe 100"
251#define UI_WIDTH 247 /* width of GUI window */
Robert Kukla275a3002009-07-26 14:26:14 +0000252#define UI_HEIGHT 462 /* height of GUI window */
Robert Kuklac1791a52008-01-20 22:57:49 +0000253#define UI_LCD_POSX 43 /* x position of lcd */
254#define UI_LCD_POSY 25 /* y position of lcd */
Robert Kukla275a3002009-07-26 14:26:14 +0000255#define UI_REMOTE_POSX 34 /* x position of remote lcd */
256#define UI_REMOTE_POSY 432 /* y position of remote lcd */
Rob Purchasefa85aa82008-01-22 22:48:36 +0000257
258#elif defined(COWON_D2)
259#define UI_TITLE "Cowon D2"
Rob Purchased8e3abf2008-01-23 22:19:53 +0000260#define UI_WIDTH 472 /* width of GUI window */
261#define UI_HEIGHT 368 /* height of GUI window */
262#define UI_LCD_POSX 58 /* x position of lcd */
263#define UI_LCD_POSY 67 /* y position of lcd */
Rob Purchasefa85aa82008-01-22 22:48:36 +0000264
Vitja Makarov90042892008-10-22 11:58:49 +0000265#elif defined(IAUDIO_7)
266#define UI_TITLE "iAudio7"
267#define UI_WIDTH 494 /* width of GUI window */
268#define UI_HEIGHT 214 /* height of GUI window */
Vitja Makarov90042892008-10-22 11:58:49 +0000269#define UI_LCD_POSX 131 /* x position of lcd */
270#define UI_LCD_POSY 38 /* y position of lcd */
Vitja Makarov90042892008-10-22 11:58:49 +0000271
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000272#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
273#ifdef CREATIVE_ZVM
274 #define UI_TITLE "Creative Zen Vision:M 30GB"
275#else
276 #define UI_TITLE "Creative Zen Vision:M 60GB"
277#endif
Maurus Cuelenaere02883e02008-05-14 21:14:06 +0000278#define UI_WIDTH 383 /* width of GUI window */
279#define UI_HEIGHT 643 /* height of GUI window */
280#define UI_LCD_POSX 31 /* x position of lcd */
281#define UI_LCD_POSY 62 /* y position of lcd */
Maurus Cuelenaere02883e02008-05-14 21:14:06 +0000282
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000283#elif defined(CREATIVE_ZV)
284#define UI_TITLE "Creative Zen Vision"
285#define UI_WIDTH 1054 /* width of GUI window */
286#define UI_HEIGHT 643 /* height of GUI window */
287#define UI_LCD_POSX 129 /* x position of lcd */
288#define UI_LCD_POSY 85 /* y position of lcd */
Maurus Cuelenaere1ea884b2008-05-15 18:01:14 +0000289
Marcoen Hirschberg7b10ef92008-06-27 23:24:34 +0000290#elif defined(MEIZU_M6SL)
291#define UI_TITLE "Meizu M6"
292#define UI_WIDTH 512 /* width of GUI window */
293#define UI_HEIGHT 322 /* height of GUI window */
294#define UI_LCD_POSX 39 /* x position of lcd */
295#define UI_LCD_POSY 38 /* y position of lcd */
Marcoen Hirschberg7b10ef92008-06-27 23:24:34 +0000296
Amaury Pouly2546bc52011-09-25 15:35:39 +0000297#elif defined(SANSA_FUZEPLUS)
298#define UI_TITLE "Sansa Fuze+"
Jean-Louis Biasini8b3d3892012-03-08 19:06:21 +0100299#define UI_WIDTH 322 /* width of GUI window */
300#define UI_HEIGHT 609 /* height of GUI window */
301#define UI_LCD_POSX 43 /* x position of lcd */
302#define UI_LCD_POSY 62 /* y position of lcd */
Amaury Pouly2546bc52011-09-25 15:35:39 +0000303
304
Rafaël Carré43f3d832010-03-28 01:56:46 +0000305#elif defined(SANSA_FUZE) || defined(SANSA_FUZEV2)
306#ifdef SANSA_FUZE
Jonathan Gordon0d812dd2008-11-11 11:26:07 +0000307#define UI_TITLE "Sansa Fuze"
Rafaël Carré43f3d832010-03-28 01:56:46 +0000308#else
309#define UI_TITLE "Sansa Fuzev2"
310#endif
Jonathan Gordon0d812dd2008-11-11 11:26:07 +0000311#define UI_WIDTH 279 /* width of GUI window */
312#define UI_HEIGHT 449 /* height of GUI window */
Jonathan Gordon0d812dd2008-11-11 11:26:07 +0000313#define UI_LCD_POSX 30 /* x position of lcd */
314#define UI_LCD_POSY 31 /* y position of lcd */
Jonathan Gordon0d812dd2008-11-11 11:26:07 +0000315
Rafaël Carré2392bb42009-12-31 19:15:20 +0000316#elif defined(SANSA_CLIP) || defined(SANSA_CLIPV2)
Rafaël Carré96688832010-02-17 19:46:51 +0000317#if defined(SANSA_CLIP)
318#define CLIP_VERSION ""
319#elif defined(SANSA_CLIPV2)
320#define CLIP_VERSION "v2"
321#endif
322#define UI_TITLE "Sansa Clip"CLIP_VERSION
Rafaël Carrécd9b1372008-10-31 18:54:37 +0000323#define UI_WIDTH 205 /* width of GUI window */
324#define UI_HEIGHT 325 /* height of GUI window */
325#define UI_LCD_POSX 38 /* x position of lcd */
326#define UI_LCD_POSY 38 /* y position of lcd */
Rafaël Carrébba06cf2008-12-04 23:24:45 +0000327
Rafaël Carré96688832010-02-17 19:46:51 +0000328#elif defined(SANSA_CLIPPLUS)
329#define UI_TITLE "Sansa Clip+"
330#define UI_WIDTH 205 /* width of GUI window */
331#define UI_HEIGHT 325 /* height of GUI window */
332#define UI_LCD_POSX 42 /* x position of lcd */
333#define UI_LCD_POSY 42 /* y position of lcd */
334
Bertrik Sikken27744572011-10-30 09:06:21 +0000335#elif defined(SANSA_CLIPZIP)
336#define UI_TITLE "Sansa Clip Zip"
337#define UI_WIDTH 160 /* width of GUI window */
338#define UI_HEIGHT 254 /* height of GUI window */
339#define UI_LCD_POSX 33 /* x position of lcd */
340#define UI_LCD_POSY 26 /* y position of lcd */
Rafaël Carré96688832010-02-17 19:46:51 +0000341
Mark Arigo895357b2009-06-19 03:50:30 +0000342#elif defined(PHILIPS_SA9200)
343#define UI_TITLE "Philips GoGear SA9200"
344#define UI_WIDTH 233 /* width of GUI window */
345#define UI_HEIGHT 435 /* height of GUI window */
346#define UI_LCD_POSX 50 /* x position of lcd */
347#define UI_LCD_POSY 50 /* y position of lcd */
348
Mark Arigo498e95b2009-01-02 04:35:13 +0000349#elif defined(PHILIPS_HDD1630)
350#define UI_TITLE "Philips GoGear HDD1630"
351#define UI_WIDTH 407 /* width of GUI window */
352#define UI_HEIGHT 391 /* height of GUI window */
Mark Arigo498e95b2009-01-02 04:35:13 +0000353#define UI_LCD_POSX 143 /* x position of lcd */
354#define UI_LCD_POSY 27 /* y position of lcd */
Mark Arigo498e95b2009-01-02 04:35:13 +0000355
Szymon Dziokc8dfe052010-10-21 22:20:16 +0000356#elif defined(PHILIPS_HDD6330)
357#define UI_TITLE "Philips GoGear HDD63X0"
358#define UI_WIDTH 400 /* width of GUI window */
359#define UI_HEIGHT 614 /* height of GUI window */
360#define UI_LCD_POSX 89 /* x position of lcd */
361#define UI_LCD_POSY 113 /* y position of lcd */
362
Dominik Wengerc38815a2009-01-07 18:52:32 +0000363#elif defined(SANSA_M200V4)
364#define UI_TITLE "sansa m200v4"
365#define UI_WIDTH 350 /* width of GUI window */
366#define UI_HEIGHT 168 /* height of GUI window */
Dominik Wengerc38815a2009-01-07 18:52:32 +0000367#define UI_LCD_POSX 42 /* x position of lcd */
368#define UI_LCD_POSY 55 /* y position of lcd */
Dominik Wengerc38815a2009-01-07 18:52:32 +0000369
Michael Chicoine48960bf2009-10-31 14:25:10 +0000370#elif defined(ONDA_VX747) || defined(ONDA_VX747P)
Maurus Cuelenaere5d43daa2009-03-09 23:40:23 +0000371#ifdef ONDA_VX747
Maurus Cuelenaere935780e2009-03-09 23:32:37 +0000372#define UI_TITLE "Onda VX747"
Maurus Cuelenaere96802442009-08-31 21:11:32 +0000373#else
Michael Chicoine48960bf2009-10-31 14:25:10 +0000374#define UI_TITLE "Onda VX747+"
Maurus Cuelenaere5d43daa2009-03-09 23:40:23 +0000375#endif
Maurus Cuelenaere935780e2009-03-09 23:32:37 +0000376#define UI_WIDTH 340 /* width of GUI window */
377#define UI_HEIGHT 601 /* height of GUI window */
378#define UI_LCD_POSX 45 /* x position of lcd */
379#define UI_LCD_POSY 90 /* y position of lcd */
Dominik Wengerc38815a2009-01-07 18:52:32 +0000380
Michael Chicoine48960bf2009-10-31 14:25:10 +0000381#elif defined(ONDA_VX777)
382#define UI_TITLE "Onda VX777"
383#define UI_WIDTH 306 /* width of GUI window */
384#define UI_HEIGHT 558 /* height of GUI window */
385#define UI_LCD_POSX 32 /* x position of lcd */
386#define UI_LCD_POSY 81 /* y position of lcd */
387
Mark Arigo758bb3b2009-05-25 21:10:45 +0000388#elif defined(SAMSUNG_YH820)
389#define UI_TITLE "Samsung YH-820"
390#define UI_WIDTH 368 /* width of GUI window */
391#define UI_HEIGHT 428 /* height of GUI window */
392#define UI_LCD_POSX 120 /* x position of lcd */
393#define UI_LCD_POSY 75 /* y position of lcd */
394
395#elif defined(SAMSUNG_YH920) || defined(SAMSUNG_YH925)
396#ifdef SAMSUNG_YH920
397#define UI_TITLE "Samsung YH-920"
398#else
399#define UI_TITLE "Samsung YH-925"
400#endif
401#define UI_WIDTH 408 /* width of GUI window */
402#define UI_HEIGHT 454 /* height of GUI window */
403#define UI_LCD_POSX 124 /* x position of lcd */
404#define UI_LCD_POSY 42 /* y position of lcd */
405
Dominik Wengere5086072009-10-28 17:56:00 +0000406#elif defined(MINI2440)
407#define UI_TITLE "Mini2440"
408#define UI_WIDTH 441 /* width of GUI window */
409#define UI_HEIGHT 436 /* height of GUI window */
410#define UI_LCD_POSX 148 /* x position of lcd */
411#define UI_LCD_POSY 50 /* y position of lcd */
Szymon Dzioka0960612010-02-01 16:41:03 +0000412
413#elif defined(PBELL_VIBE500)
414#define UI_TITLE "Packard Bell Vibe 500"
415#define UI_WIDTH 287 /* width of GUI window */
416#define UI_HEIGHT 488 /* height of GUI window */
417#define UI_LCD_POSX 64 /* x position of lcd */
418#define UI_LCD_POSY 61 /* y position of lcd */
Marcin Bukatb09d3ae2010-04-26 21:40:00 +0000419
420#elif defined(MPIO_HD200)
421#define UI_TITLE "MPIO HD200"
422#define UI_WIDTH 430 /* width of GUI window */
423#define UI_HEIGHT 479 /* height of GUI window */
424#define UI_LCD_POSX 101
425#define UI_LCD_POSY 195
426
Marcin Bukat5a4b7c32010-12-08 21:40:35 +0000427#elif defined(MPIO_HD300)
428#define UI_TITLE "MPIO HD300"
429#define UI_WIDTH 286 /* width of GUI window */
430#define UI_HEIGHT 524 /* height of GUI window */
431#define UI_LCD_POSX 64
432#define UI_LCD_POSY 127
433
Tomasz Moń39f44082011-12-01 13:41:59 +0000434#elif defined(SANSA_CONNECT)
435#define UI_TITLE "Sansa Connect"
436#define UI_WIDTH 371 /* width of GUI window */
437#define UI_HEIGHT 687 /* height of GUI window */
438#define UI_LCD_POSX 68
439#define UI_LCD_POSY 77
440
Amaury Pouly12c64a42012-05-19 16:09:46 +0200441#elif defined(CREATIVE_ZENXFI3)
442#define UI_TITLE "Creative ZEN X-Fi3"
443#define UI_WIDTH 262 /* width of GUI window */
444#define UI_HEIGHT 350 /* height of GUI window */
445#define UI_LCD_POSX 43
446#define UI_LCD_POSY 65
447
Amaury Pouly1a5cda92013-01-15 21:57:00 +0000448#elif defined(CREATIVE_ZENXFI2)
449#define UI_TITLE "Creative ZEN X-Fi2"
450#define UI_WIDTH 324 /* width of GUI window */
451#define UI_HEIGHT 586 /* height of GUI window */
452#define UI_LCD_POSX 42
453#define UI_LCD_POSY 42
454
Amaury Poulyddf56a12013-09-25 18:22:26 +0200455#elif defined(SONY_NWZE360)
456#define UI_TITLE "Sony NWZ-E360"
457#define UI_WIDTH 340 /* width of GUI window */
458#define UI_HEIGHT 674 /* height of GUI window */
459#define UI_LCD_POSX 50
460#define UI_LCD_POSY 62
461
Amaury Poulyf37f3392013-09-26 13:22:45 +0200462#elif defined(SONY_NWZE370)
463#define UI_TITLE "Sony NWZ-E370"
464#define UI_WIDTH 196 /* width of GUI window */
465#define UI_HEIGHT 398 /* height of GUI window */
466#define UI_LCD_POSX 34
467#define UI_LCD_POSY 32
468
Thomas Martitz31b5c472010-07-06 15:11:56 +0000469#elif defined(APPLICATION)
470#define UI_TITLE "Rockbox"
471#define UI_LCD_POSX 0
472#define UI_LCD_POSY 0
473#define UI_WIDTH LCD_WIDTH
474#define UI_HEIGHT LCD_HEIGHT
475
Lorenzo Miori9a8ed6b2013-09-16 00:02:28 +0200476#elif defined(SAMSUNG_YPR0)
477#define UI_TITLE "Samsung YP-R0"
478#define UI_WIDTH 313 /* width of GUI window */
479#define UI_HEIGHT 560 /* height of GUI window */
480#define UI_LCD_POSX 36
481#define UI_LCD_POSY 37
482
Amaury Pouly59b1fbc2013-11-07 18:41:57 +0000483#elif defined(CREATIVE_ZEN)
484#define UI_TITLE "Creative ZEN"
485#define UI_WIDTH 520 /* width of GUI window */
486#define UI_HEIGHT 340 /* height of GUI window */
487#define UI_LCD_POSX 35
488#define UI_LCD_POSY 36
489
Thomas Martitz3d0cee82010-05-15 21:02:47 +0000490#elif defined(SIMULATOR)
Dominik Wengerc38815a2009-01-07 18:52:32 +0000491#error no UI defines
Daniel Stenberge43b29d2006-08-03 20:25:39 +0000492#endif
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000493
Daniel Stenberg4582f232006-03-19 06:59:36 +0000494#endif /* #ifndef __UISDL_H__ */
Linus Nielsen Feltzing3f66e8e2006-02-03 16:01:16 +0000495