summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/uisdl.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-02-09 00:32:59 +0000
committerJens Arnold <amiconn@rockbox.org>2009-02-09 00:32:59 +0000
commit0d935ce75e1408dfd9832ae7dbb7d84df50a645d (patch)
tree9ddcc5d21dcd0e576d0fa824e74c58755fa9d1a0 /uisimulator/sdl/uisdl.h
parent94537f954e67d44fdd9703c062c4ee53599e0e74 (diff)
downloadrockbox-0d935ce75e1408dfd9832ae7dbb7d84df50a645d.tar.gz
rockbox-0d935ce75e1408dfd9832ae7dbb7d84df50a645d.zip
Put the display colours for monochrome and greyscale targets into the target config files, and use them both for the simulator UI and screendumps. The Clip now shows the split display properly in screendumps and simulator. A side effect is that screendumps of ordinary monochrome targets are now 4-bit BMP files (saves an alternate code path, and might be more compatible with some gfx programs). * Simplify the simulation of split display, and also simplify greylib simulation. The simulator now always calculates 129 shades (2*128 for a Clip sim), and just uses 2 (or 4) of those for native display simulation. * Centralised the simulator LCD dimension definition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/uisdl.h')
-rw-r--r--uisimulator/sdl/uisdl.h218
1 files changed, 10 insertions, 208 deletions
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index e33be01948..6cb382ce8b 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -31,208 +31,114 @@
31#define UI_TITLE "Jukebox Recorder" 31#define UI_TITLE "Jukebox Recorder"
32#define UI_WIDTH 270 /* width of GUI window */ 32#define UI_WIDTH 270 /* width of GUI window */
33#define UI_HEIGHT 406 /* height 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 */ 34#define UI_LCD_POSX 80 /* x position of lcd */
39#define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */ 35#define UI_LCD_POSY 104 /* y position of lcd */
40#define UI_LCD_WIDTH 112
41#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
42 36
43#elif defined(ARCHOS_PLAYER) 37#elif defined(ARCHOS_PLAYER)
44#define UI_TITLE "Jukebox Player" 38#define UI_TITLE "Jukebox Player"
45#define UI_WIDTH 284 /* width of GUI window */ 39#define UI_WIDTH 284 /* width of GUI window */
46#define UI_HEIGHT 420 /* height of GUI window */ 40#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 */ 41#define UI_LCD_POSX 75 /* x position of lcd */
52#define UI_LCD_POSY 116 /* y position of lcd */ 42#define UI_LCD_POSY 116 /* y position of lcd */
53#define UI_LCD_WIDTH 132
54#define UI_LCD_HEIGHT 64
55 43
56#elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) 44#elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
57#define UI_TITLE "Jukebox FM Recorder" 45#define UI_TITLE "Jukebox FM Recorder"
58#define UI_WIDTH 285 /* width of GUI window */ 46#define UI_WIDTH 285 /* width of GUI window */
59#define UI_HEIGHT 414 /* height of GUI window */ 47#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 */ 48#define UI_LCD_POSX 87 /* x position of lcd */
65#define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */ 49#define UI_LCD_POSY 77 /* y position of lcd */
66#define UI_LCD_WIDTH 112
67#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
68 50
69#elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM) 51#elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
70#define UI_TITLE "Ondio" 52#define UI_TITLE "Ondio"
71#define UI_WIDTH 155 /* width of GUI window */ 53#define UI_WIDTH 155 /* width of GUI window */
72#define UI_HEIGHT 334 /* height of GUI window */ 54#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 */ 55#define UI_LCD_POSX 21 /* x position of lcd */
78#define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */ 56#define UI_LCD_POSY 82 /* y position of lcd */
79#define UI_LCD_WIDTH 112
80#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
81 57
82#elif defined(IRIVER_H120) || defined(IRIVER_H100) 58#elif defined(IRIVER_H120) || defined(IRIVER_H100)
83#define UI_TITLE "iriver H1x0" 59#define UI_TITLE "iriver H1x0"
84#define UI_WIDTH 379 /* width of GUI window */ 60#define UI_WIDTH 379 /* width of GUI window */
85#define UI_HEIGHT 508 /* height of GUI window */ 61#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 */ 62#define UI_LCD_POSX 109 /* x position of lcd */
91#define UI_LCD_POSY 23 /* y position of lcd */ 63#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 */ 64#define UI_REMOTE_POSX 50 /* x position of remote lcd */
99#define UI_REMOTE_POSY 403 /* y position of remote lcd */ 65#define UI_REMOTE_POSY 403 /* y position of remote lcd */
100#define UI_REMOTE_WIDTH 128
101#define UI_REMOTE_HEIGHT 64
102 66
103#elif defined(IRIVER_H300) 67#elif defined(IRIVER_H300)
104#define UI_TITLE "iriver H300" 68#define UI_TITLE "iriver H300"
105#define UI_WIDTH 288 /* width of GUI window */ 69#define UI_WIDTH 288 /* width of GUI window */
106#define UI_HEIGHT 581 /* height of GUI window */ 70#define UI_HEIGHT 581 /* height of GUI window */
107/* high-colour */
108#define UI_LCD_POSX 26 /* x position of lcd */ 71#define UI_LCD_POSX 26 /* x position of lcd */
109#define UI_LCD_POSY 36 /* y position of lcd */ 72#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 */ 73#define UI_REMOTE_POSX 12 /* x position of remote lcd */
115#define UI_REMOTE_POSY 478 /* y position of remote lcd */ 74#define UI_REMOTE_POSY 478 /* y position of remote lcd */
116#define UI_REMOTE_WIDTH 128
117#define UI_REMOTE_HEIGHT 64
118 75
119#elif defined(IPOD_1G2G) 76#elif defined(IPOD_1G2G)
120#define UI_TITLE "iPod 1G/2G" 77#define UI_TITLE "iPod 1G/2G"
121#define UI_WIDTH 224 /* width of GUI window */ 78#define UI_WIDTH 224 /* width of GUI window */
122#define UI_HEIGHT 382 /* height of GUI window */ 79#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 */ 80#define UI_LCD_POSX 32 /* x position of lcd */
128#define UI_LCD_POSY 12 /* y position of lcd */ 81#define UI_LCD_POSY 12 /* y position of lcd */
129#define UI_LCD_WIDTH 160
130#define UI_LCD_HEIGHT 128
131 82
132#elif defined(IPOD_3G) 83#elif defined(IPOD_3G)
133#define UI_TITLE "iPod 3G" 84#define UI_TITLE "iPod 3G"
134#define UI_WIDTH 218 /* width of GUI window */ 85#define UI_WIDTH 218 /* width of GUI window */
135#define UI_HEIGHT 389 /* height of GUI window */ 86#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 */ 87#define UI_LCD_POSX 29 /* x position of lcd */
141#define UI_LCD_POSY 16 /* y position of lcd */ 88#define UI_LCD_POSY 16 /* y position of lcd */
142#define UI_LCD_WIDTH 160
143#define UI_LCD_HEIGHT 128
144 89
145#elif defined(IPOD_4G) 90#elif defined(IPOD_4G)
146#define UI_TITLE "iPod 4G" 91#define UI_TITLE "iPod 4G"
147#define UI_WIDTH 196 /* width of GUI window */ 92#define UI_WIDTH 196 /* width of GUI window */
148#define UI_HEIGHT 370 /* height of GUI window */ 93#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 */ 94#define UI_LCD_POSX 19 /* x position of lcd */
154#define UI_LCD_POSY 14 /* y position of lcd */ 95#define UI_LCD_POSY 14 /* y position of lcd */
155#define UI_LCD_WIDTH 160
156#define UI_LCD_HEIGHT 128
157 96
158#elif defined(IPOD_MINI) || defined(IPOD_MINI2G) 97#elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
159#define UI_TITLE "iPod mini" 98#define UI_TITLE "iPod mini"
160#define UI_WIDTH 191 /* width of GUI window */ 99#define UI_WIDTH 191 /* width of GUI window */
161#define UI_HEIGHT 365 /* height of GUI window */ 100#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 */ 101#define UI_LCD_POSX 24 /* x position of lcd */
167#define UI_LCD_POSY 17 /* y position of lcd */ 102#define UI_LCD_POSY 17 /* y position of lcd */
168#define UI_LCD_WIDTH 138
169#define UI_LCD_HEIGHT 110
170 103
171#elif defined(IPOD_COLOR) 104#elif defined(IPOD_COLOR)
172#define UI_TITLE "iPod Color" 105#define UI_TITLE "iPod Color"
173#define UI_WIDTH 261 /* width of GUI window */ 106#define UI_WIDTH 261 /* width of GUI window */
174#define UI_HEIGHT 493 /* height of GUI window */ 107#define UI_HEIGHT 493 /* height of GUI window */
175/* high-colour */
176#define UI_LCD_POSX 21 /* x position of lcd */ 108#define UI_LCD_POSX 21 /* x position of lcd */
177#define UI_LCD_POSY 16 /* y position of lcd */ 109#define UI_LCD_POSY 16 /* y position of lcd */
178#define UI_LCD_WIDTH 220
179#define UI_LCD_HEIGHT 176
180 110
181#elif defined(IPOD_NANO) 111#elif defined(IPOD_NANO)
182#define UI_TITLE "iPod Nano" 112#define UI_TITLE "iPod Nano"
183#define UI_WIDTH 199 /* width of GUI window */ 113#define UI_WIDTH 199 /* width of GUI window */
184#define UI_HEIGHT 421 /* height of GUI window */ 114#define UI_HEIGHT 421 /* height of GUI window */
185/* high-colour */
186#define UI_LCD_POSX 13 /* x position of lcd */ 115#define UI_LCD_POSX 13 /* x position of lcd */
187#define UI_LCD_POSY 14 /* y position of lcd */ 116#define UI_LCD_POSY 14 /* y position of lcd */
188#define UI_LCD_WIDTH 176
189#define UI_LCD_HEIGHT 132
190 117
191#elif defined(IPOD_VIDEO) 118#elif defined(IPOD_VIDEO)
192#define UI_TITLE "iPod Video" 119#define UI_TITLE "iPod Video"
193#define UI_WIDTH 350 /* width of GUI window */ 120#define UI_WIDTH 350 /* width of GUI window */
194#define UI_HEIGHT 591 /* height of GUI window */ 121#define UI_HEIGHT 591 /* height of GUI window */
195/* high-colour */
196#define UI_LCD_POSX 14 /* x position of lcd */ 122#define UI_LCD_POSX 14 /* x position of lcd */
197#define UI_LCD_POSY 12 /* y position of lcd */ 123#define UI_LCD_POSY 12 /* y position of lcd */
198#define UI_LCD_WIDTH 320
199#define UI_LCD_HEIGHT 240
200 124
201#elif defined(IAUDIO_X5) 125#elif defined(IAUDIO_X5)
202#define UI_TITLE "iAudio X5" 126#define UI_TITLE "iAudio X5"
203#define UI_WIDTH 300 /* width of GUI window */ 127#define UI_WIDTH 300 /* width of GUI window */
204#define UI_HEIGHT 558 /* height of GUI window */ 128#define UI_HEIGHT 558 /* height of GUI window */
205/* high-colour */
206#define UI_LCD_POSX 55 /* x position of lcd */ 129#define UI_LCD_POSX 55 /* x position of lcd */
207#define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */ 130#define UI_LCD_POSY 61 /* y position of lcd */
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 */ 131#define UI_REMOTE_POSX 12 /* x position of remote lcd */
213#define UI_REMOTE_POSY 462 /* y position of remote lcd */ 132#define UI_REMOTE_POSY 462 /* y position of remote lcd */
214#define UI_REMOTE_WIDTH 128
215#define UI_REMOTE_HEIGHT 96
216 133
217#elif defined(IAUDIO_M5) 134#elif defined(IAUDIO_M5)
218#define UI_TITLE "iAudio M5" 135#define UI_TITLE "iAudio M5"
219#define UI_WIDTH 374 /* width of GUI window */ 136#define UI_WIDTH 374 /* width of GUI window */
220#define UI_HEIGHT 650 /* height of GUI window */ 137#define UI_HEIGHT 650 /* height of GUI window */
221/* high-colour */
222#define UI_LCD_POSX 82 /* x position of lcd */ 138#define UI_LCD_POSX 82 /* x position of lcd */
223#define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */ 139#define UI_LCD_POSY 74 /* y position of lcd */
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 */ 140#define UI_REMOTE_POSX 59 /* x position of remote lcd */
233#define UI_REMOTE_POSY 509 /* y position of remote lcd */ 141#define UI_REMOTE_POSY 509 /* y position of remote lcd */
234#define UI_REMOTE_WIDTH 128
235#define UI_REMOTE_HEIGHT 96
236 142
237#elif defined(IAUDIO_M3) 143#elif defined(IAUDIO_M3)
238#define UI_TITLE "iAudio M3" 144#define UI_TITLE "iAudio M3"
@@ -240,68 +146,43 @@
240#define UI_HEIGHT 501 /* height of GUI window */ 146#define UI_HEIGHT 501 /* height of GUI window */
241#define UI_LCD_POSX 92 /* x position of lcd */ 147#define UI_LCD_POSX 92 /* x position of lcd */
242#define UI_LCD_POSY 348 /* y position of lcd */ 148#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 149
250#elif defined(GIGABEAT_F) 150#elif defined(GIGABEAT_F)
251#define UI_TITLE "Toshiba Gigabeat" 151#define UI_TITLE "Toshiba Gigabeat"
252#define UI_WIDTH 401 /* width of GUI window */ 152#define UI_WIDTH 401 /* width of GUI window */
253#define UI_HEIGHT 655 /* height of GUI window */ 153#define UI_HEIGHT 655 /* height of GUI window */
254/* high-colour */
255#define UI_LCD_POSX 48 /* x position of lcd */ 154#define UI_LCD_POSX 48 /* x position of lcd */
256#define UI_LCD_POSY 60 /* y position of lcd */ 155#define UI_LCD_POSY 60 /* y position of lcd */
257#define UI_LCD_WIDTH 240
258#define UI_LCD_HEIGHT 320
259 156
260#elif defined(GIGABEAT_S) 157#elif defined(GIGABEAT_S)
261#define UI_TITLE "Toshiba Gigabeat" 158#define UI_TITLE "Toshiba Gigabeat"
262#define UI_WIDTH 450 /* width of GUI window */ 159#define UI_WIDTH 450 /* width of GUI window */
263#define UI_HEIGHT 688 /* height of GUI window */ 160#define UI_HEIGHT 688 /* height of GUI window */
264/* high-colour */
265#define UI_LCD_POSX 96 /* x position of lcd */ 161#define UI_LCD_POSX 96 /* x position of lcd */
266#define UI_LCD_POSY 90 /* y position of lcd */ 162#define UI_LCD_POSY 90 /* y position of lcd */
267#define UI_LCD_WIDTH 240
268#define UI_LCD_HEIGHT 320
269 163
270#elif defined(MROBE_500) 164#elif defined(MROBE_500)
271#define UI_TITLE "Olympus M:Robe 500" 165#define UI_TITLE "Olympus M:Robe 500"
272#define UI_WIDTH 401 /* width of GUI window */ 166#define UI_WIDTH 401 /* width of GUI window */
273#define UI_HEIGHT 655 /* height of GUI window */ 167#define UI_HEIGHT 655 /* height of GUI window */
274/* high-colour */
275#define UI_LCD_POSX 48 /* x position of lcd */ 168#define UI_LCD_POSX 48 /* x position of lcd */
276#define UI_LCD_POSY 60 /* y position of lcd */ 169#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 */ 170#define UI_REMOTE_POSX 50 /* x position of remote lcd */
282#define UI_REMOTE_POSY 403 /* y position of remote lcd */ 171#define UI_REMOTE_POSY 403 /* y position of remote lcd */
283#define UI_REMOTE_WIDTH 79
284#define UI_REMOTE_HEIGHT 16
285 172
286#elif defined(IRIVER_H10) 173#elif defined(IRIVER_H10)
287#define UI_TITLE "iriver H10 20Gb" 174#define UI_TITLE "iriver H10 20Gb"
288#define UI_WIDTH 392 /* width of GUI window */ 175#define UI_WIDTH 392 /* width of GUI window */
289#define UI_HEIGHT 391 /* height of GUI window */ 176#define UI_HEIGHT 391 /* height of GUI window */
290/* high-colour */
291#define UI_LCD_POSX 111 /* x position of lcd */ 177#define UI_LCD_POSX 111 /* x position of lcd */
292#define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ 178#define UI_LCD_POSY 30 /* y position of lcd */
293#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
294#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
295 179
296#elif defined(IRIVER_H10_5GB) 180#elif defined(IRIVER_H10_5GB)
297#define UI_TITLE "iriver H10 5/6Gb" 181#define UI_TITLE "iriver H10 5/6Gb"
298#define UI_WIDTH 353 /* width of GUI window */ 182#define UI_WIDTH 353 /* width of GUI window */
299#define UI_HEIGHT 460 /* height of GUI window */ 183#define UI_HEIGHT 460 /* height of GUI window */
300/* high-colour */
301#define UI_LCD_POSX 112 /* x position of lcd */ 184#define UI_LCD_POSX 112 /* x position of lcd */
302#define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */ 185#define UI_LCD_POSY 45 /* y position of lcd */
303#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
304#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
305 186
306#elif defined(SANSA_E200) || defined(SANSA_E200V2) 187#elif defined(SANSA_E200) || defined(SANSA_E200V2)
307#ifdef SANSA_E200 188#ifdef SANSA_E200
@@ -311,35 +192,23 @@
311#endif 192#endif
312#define UI_WIDTH 260 /* width of GUI window */ 193#define UI_WIDTH 260 /* width of GUI window */
313#define UI_HEIGHT 502 /* height of GUI window */ 194#define UI_HEIGHT 502 /* height of GUI window */
314/* high-colour */
315#define UI_LCD_POSX 42 /* x position of lcd */ 195#define UI_LCD_POSX 42 /* x position of lcd */
316#define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */ 196#define UI_LCD_POSY 37 /* y position of lcd */
317#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
318#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
319 197
320#elif defined(SANSA_C200) 198#elif defined(SANSA_C200)
321#define UI_TITLE "Sansa c200" 199#define UI_TITLE "Sansa c200"
322#define UI_WIDTH 350 /* width of GUI window */ 200#define UI_WIDTH 350 /* width of GUI window */
323#define UI_HEIGHT 152 /* height of GUI window */ 201#define UI_HEIGHT 152 /* height of GUI window */
324/* high-colour */
325#define UI_LCD_POSX 42 /* x position of lcd */ 202#define UI_LCD_POSX 42 /* x position of lcd */
326#define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */ 203#define UI_LCD_POSY 35 /* y position of lcd */
327#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
328#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
329 204
330#elif defined(IRIVER_IFP7XX) 205#elif defined(IRIVER_IFP7XX)
331#define UI_TITLE "iriver iFP7xx" 206#define UI_TITLE "iriver iFP7xx"
332#define UI_WIDTH 425 /* width of GUI window */ 207#define UI_WIDTH 425 /* width of GUI window */
333#define UI_HEIGHT 183 /* height of GUI window */ 208#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 */ 209#define UI_LCD_POSX 115 /* x position of lcd */
339#define UI_LCD_POSY 54 /* y position of lcd */ 210#define UI_LCD_POSY 54 /* y position of lcd */
340#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ 211
341#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
342
343#elif defined(ARCHOS_AV300) 212#elif defined(ARCHOS_AV300)
344#define UI_TITLE "Archos AV300" 213#define UI_TITLE "Archos AV300"
345/* We are temporarily using a 2bpp LCD driver and dummy bitmap */ 214/* We are temporarily using a 2bpp LCD driver and dummy bitmap */
@@ -347,25 +216,13 @@
347#define UI_HEIGHT 340 /* height of GUI window */ 216#define UI_HEIGHT 340 /* height of GUI window */
348#define UI_LCD_POSX 50 /* x position of lcd */ 217#define UI_LCD_POSX 50 /* x position of lcd */
349#define UI_LCD_POSY 50 /* y position of lcd */ 218#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) */
356 219
357#elif defined(MROBE_100) 220#elif defined(MROBE_100)
358#define UI_TITLE "Olympus M:Robe 100" 221#define UI_TITLE "Olympus M:Robe 100"
359#define UI_WIDTH 247 /* width of GUI window */ 222#define UI_WIDTH 247 /* width of GUI window */
360#define UI_HEIGHT 416 /* height of GUI window */ 223#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 */ 224#define UI_LCD_POSX 43 /* x position of lcd */
366#define UI_LCD_POSY 25 /* y position of lcd */ 225#define UI_LCD_POSY 25 /* y position of lcd */
367#define UI_LCD_WIDTH 160
368#define UI_LCD_HEIGHT 128
369 226
370#elif defined(COWON_D2) 227#elif defined(COWON_D2)
371#define UI_TITLE "Cowon D2" 228#define UI_TITLE "Cowon D2"
@@ -373,25 +230,13 @@
373#define UI_HEIGHT 368 /* height of GUI window */ 230#define UI_HEIGHT 368 /* height of GUI window */
374#define UI_LCD_POSX 58 /* x position of lcd */ 231#define UI_LCD_POSX 58 /* x position of lcd */
375#define UI_LCD_POSY 67 /* y position of lcd */ 232#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) */
382 233
383#elif defined(IAUDIO_7) 234#elif defined(IAUDIO_7)
384#define UI_TITLE "iAudio7" 235#define UI_TITLE "iAudio7"
385#define UI_WIDTH 494 /* width of GUI window */ 236#define UI_WIDTH 494 /* width of GUI window */
386#define UI_HEIGHT 214 /* height of GUI window */ 237#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 */ 238#define UI_LCD_POSX 131 /* x position of lcd */
392#define UI_LCD_POSY 38 /* y position of lcd */ 239#define UI_LCD_POSY 38 /* y position of lcd */
393#define UI_LCD_WIDTH 160
394#define UI_LCD_HEIGHT 128
395 240
396#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB) 241#elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB)
397#ifdef CREATIVE_ZVM 242#ifdef CREATIVE_ZVM
@@ -403,12 +248,6 @@
403#define UI_HEIGHT 643 /* height of GUI window */ 248#define UI_HEIGHT 643 /* height of GUI window */
404#define UI_LCD_POSX 31 /* x position of lcd */ 249#define UI_LCD_POSX 31 /* x position of lcd */
405#define UI_LCD_POSY 62 /* y position of lcd */ 250#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) */
412 251
413#elif defined(CREATIVE_ZV) 252#elif defined(CREATIVE_ZV)
414#define UI_TITLE "Creative Zen Vision" 253#define UI_TITLE "Creative Zen Vision"
@@ -416,12 +255,6 @@
416#define UI_HEIGHT 643 /* height of GUI window */ 255#define UI_HEIGHT 643 /* height of GUI window */
417#define UI_LCD_POSX 129 /* x position of lcd */ 256#define UI_LCD_POSX 129 /* x position of lcd */
418#define UI_LCD_POSY 85 /* y position of lcd */ 257#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) */
425 258
426#elif defined(MEIZU_M6SL) 259#elif defined(MEIZU_M6SL)
427#define UI_TITLE "Meizu M6" 260#define UI_TITLE "Meizu M6"
@@ -429,22 +262,13 @@
429#define UI_HEIGHT 322 /* height of GUI window */ 262#define UI_HEIGHT 322 /* height of GUI window */
430#define UI_LCD_POSX 39 /* x position of lcd */ 263#define UI_LCD_POSX 39 /* x position of lcd */
431#define UI_LCD_POSY 38 /* y position of lcd */ 264#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) */
438 265
439#elif defined(SANSA_FUZE) 266#elif defined(SANSA_FUZE)
440#define UI_TITLE "Sansa Fuze" 267#define UI_TITLE "Sansa Fuze"
441#define UI_WIDTH 279 /* width of GUI window */ 268#define UI_WIDTH 279 /* width of GUI window */
442#define UI_HEIGHT 449 /* height of GUI window */ 269#define UI_HEIGHT 449 /* height of GUI window */
443/* high-colour */
444#define UI_LCD_POSX 30 /* x position of lcd */ 270#define UI_LCD_POSX 30 /* x position of lcd */
445#define UI_LCD_POSY 31 /* y position of lcd */ 271#define UI_LCD_POSY 31 /* y position of lcd */
446#define UI_LCD_WIDTH LCD_WIDTH
447#define UI_LCD_HEIGHT LCD_HEIGHT
448 272
449#elif defined(SANSA_CLIP) 273#elif defined(SANSA_CLIP)
450#define UI_TITLE "Sansa Clip" 274#define UI_TITLE "Sansa Clip"
@@ -452,42 +276,20 @@
452#define UI_HEIGHT 325 /* height of GUI window */ 276#define UI_HEIGHT 325 /* height of GUI window */
453#define UI_LCD_POSX 38 /* x position of lcd */ 277#define UI_LCD_POSX 38 /* x position of lcd */
454#define UI_LCD_POSY 38 /* y position of lcd */ 278#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) */
461
462#define UI_LCD_SPLIT /* The screen is split in 2 areas */
463#define UI_LCD_SPLIT_LINES 16 /* the top 16 lines have a different color */
464#define UI_LCD_SPLIT_BLACK_LINES 2 /* The 2 areas are separated by 2 empty lines */
465/* Colors for the top part of the screen */
466#define UI_LCD_SPLIT_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
467#define UI_LCD_SPLIT_FGCOLORLIGHT 255, 230, 15 /* foreground color of LCD (backlight) */
468 279
469#elif defined(PHILIPS_HDD1630) 280#elif defined(PHILIPS_HDD1630)
470#define UI_TITLE "Philips GoGear HDD1630" 281#define UI_TITLE "Philips GoGear HDD1630"
471#define UI_WIDTH 407 /* width of GUI window */ 282#define UI_WIDTH 407 /* width of GUI window */
472#define UI_HEIGHT 391 /* height of GUI window */ 283#define UI_HEIGHT 391 /* height of GUI window */
473/* high-colour */
474#define UI_LCD_POSX 143 /* x position of lcd */ 284#define UI_LCD_POSX 143 /* x position of lcd */
475#define UI_LCD_POSY 27 /* y position of lcd */ 285#define UI_LCD_POSY 27 /* y position of lcd */
476#define UI_LCD_WIDTH LCD_WIDTH
477#define UI_LCD_HEIGHT LCD_HEIGHT
478 286
479#elif defined(SANSA_M200V4) 287#elif defined(SANSA_M200V4)
480#define UI_TITLE "sansa m200v4" 288#define UI_TITLE "sansa m200v4"
481#define UI_WIDTH 350 /* width of GUI window */ 289#define UI_WIDTH 350 /* width of GUI window */
482#define UI_HEIGHT 168 /* height of GUI window */ 290#define UI_HEIGHT 168 /* height of GUI window */
483#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
484#define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
485#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
486#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
487#define UI_LCD_POSX 42 /* x position of lcd */ 291#define UI_LCD_POSX 42 /* x position of lcd */
488#define UI_LCD_POSY 55 /* y position of lcd */ 292#define UI_LCD_POSY 55 /* y position of lcd */
489#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
490#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
491 293
492 294
493#else 295#else