Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2006 Dan Everton |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License |
| 14 | * as published by the Free Software Foundation; either version 2 |
| 15 | * of the License, or (at your option) any later version. |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 16 | * |
| 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 Everton | b585e87 | 2006-02-09 21:49:28 +0000 | [diff] [blame] | 25 | #include <stdbool.h> |
| 26 | #include "SDL.h" |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 27 | |
Jens Arnold | a57608c | 2006-02-08 13:54:21 +0000 | [diff] [blame] | 28 | /* colour definitions are R, G, B */ |
| 29 | |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 30 | #if defined(ARCHOS_RECORDER) |
| 31 | #define UI_TITLE "Jukebox Recorder" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 32 | #define UI_WIDTH 270 /* width of GUI window */ |
| 33 | #define UI_HEIGHT 406 /* height of GUI window */ |
| 34 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 35 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 38 | #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 Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 40 | #define UI_LCD_WIDTH 112 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 41 | #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 42 | |
| 43 | #elif defined(ARCHOS_PLAYER) |
| 44 | #define UI_TITLE "Jukebox Player" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 45 | #define UI_WIDTH 284 /* width of GUI window */ |
| 46 | #define UI_HEIGHT 420 /* height of GUI window */ |
| 47 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 48 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 51 | #define UI_LCD_POSX 75 /* x position of lcd */ |
| 52 | #define UI_LCD_POSY 116 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 53 | #define UI_LCD_WIDTH 132 |
Jens Arnold | 3e496e3 | 2006-02-20 00:31:10 +0000 | [diff] [blame] | 54 | #define UI_LCD_HEIGHT 64 |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 55 | |
| 56 | #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) |
| 57 | #define UI_TITLE "Jukebox FM Recorder" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 58 | #define UI_WIDTH 285 /* width of GUI window */ |
| 59 | #define UI_HEIGHT 414 /* height of GUI window */ |
| 60 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 61 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 64 | #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 Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 66 | #define UI_LCD_WIDTH 112 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 67 | #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 68 | |
| 69 | #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM) |
| 70 | #define UI_TITLE "Ondio" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 71 | #define UI_WIDTH 155 /* width of GUI window */ |
| 72 | #define UI_HEIGHT 334 /* height of GUI window */ |
| 73 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
Jens Arnold | ae0c1af | 2006-06-03 12:09:12 +0000 | [diff] [blame] | 74 | #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 77 | #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 Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 79 | #define UI_LCD_WIDTH 112 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 80 | #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 81 | |
| 82 | #elif defined(IRIVER_H120) || defined(IRIVER_H100) |
| 83 | #define UI_TITLE "iriver H1x0" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 84 | #define UI_WIDTH 379 /* width of GUI window */ |
| 85 | #define UI_HEIGHT 508 /* height of GUI window */ |
| 86 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 87 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 90 | #define UI_LCD_POSX 109 /* x position of lcd */ |
| 91 | #define UI_LCD_POSY 23 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 92 | #define UI_LCD_WIDTH 160 |
| 93 | #define UI_LCD_HEIGHT 128 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 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) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 98 | #define UI_REMOTE_POSX 50 /* x position of remote lcd */ |
| 99 | #define UI_REMOTE_POSY 403 /* y position of remote lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 100 | #define UI_REMOTE_WIDTH 128 |
| 101 | #define UI_REMOTE_HEIGHT 64 |
| 102 | |
Dan Everton | b585e87 | 2006-02-09 21:49:28 +0000 | [diff] [blame] | 103 | #elif defined(IRIVER_H300) |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 104 | #define UI_TITLE "iriver H300" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 105 | #define UI_WIDTH 288 /* width of GUI window */ |
| 106 | #define UI_HEIGHT 581 /* height of GUI window */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 107 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 108 | #define UI_LCD_POSX 26 /* x position of lcd */ |
| 109 | #define UI_LCD_POSY 36 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 110 | #define UI_LCD_WIDTH 220 |
| 111 | #define UI_LCD_HEIGHT 176 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 112 | #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ |
| 113 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 114 | #define UI_REMOTE_POSX 12 /* x position of remote lcd */ |
| 115 | #define UI_REMOTE_POSY 478 /* y position of remote lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 116 | #define UI_REMOTE_WIDTH 128 |
| 117 | #define UI_REMOTE_HEIGHT 64 |
| 118 | |
Jens Arnold | 729b25c | 2007-08-05 20:43:54 +0000 | [diff] [blame] | 119 | #elif defined(IPOD_1G2G) |
| 120 | #define UI_TITLE "iPod 1G/2G" |
| 121 | #define UI_WIDTH 224 /* width of GUI window */ |
| 122 | #define UI_HEIGHT 382 /* height of GUI window */ |
| 123 | #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ |
| 124 | #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Jens Arnold | 729b25c | 2007-08-05 20:43:54 +0000 | [diff] [blame] | 127 | #define UI_LCD_POSX 32 /* x position of lcd */ |
| 128 | #define UI_LCD_POSY 12 /* y position of lcd */ |
| 129 | #define UI_LCD_WIDTH 160 |
| 130 | #define UI_LCD_HEIGHT 128 |
| 131 | |
Jens Arnold | edc19fb | 2006-10-16 18:15:36 +0000 | [diff] [blame] | 132 | #elif defined(IPOD_3G) |
| 133 | #define UI_TITLE "iPod 3G" |
| 134 | #define UI_WIDTH 218 /* width of GUI window */ |
| 135 | #define UI_HEIGHT 389 /* height of GUI window */ |
| 136 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 137 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Jens Arnold | edc19fb | 2006-10-16 18:15:36 +0000 | [diff] [blame] | 140 | #define UI_LCD_POSX 29 /* x position of lcd */ |
| 141 | #define UI_LCD_POSY 16 /* y position of lcd */ |
| 142 | #define UI_LCD_WIDTH 160 |
| 143 | #define UI_LCD_HEIGHT 128 |
| 144 | |
Dave Chapman | 8ad2df8 | 2006-02-09 00:48:53 +0000 | [diff] [blame] | 145 | #elif defined(IPOD_4G) |
| 146 | #define UI_TITLE "iPod 4G" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 147 | #define UI_WIDTH 196 /* width of GUI window */ |
| 148 | #define UI_HEIGHT 370 /* height of GUI window */ |
| 149 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 150 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 153 | #define UI_LCD_POSX 19 /* x position of lcd */ |
| 154 | #define UI_LCD_POSY 14 /* y position of lcd */ |
Dave Chapman | 8ad2df8 | 2006-02-09 00:48:53 +0000 | [diff] [blame] | 155 | #define UI_LCD_WIDTH 160 |
| 156 | #define UI_LCD_HEIGHT 128 |
| 157 | |
Jens Arnold | 80865f2 | 2006-04-02 19:07:27 +0000 | [diff] [blame] | 158 | #elif defined(IPOD_MINI) || defined(IPOD_MINI2G) |
| 159 | #define UI_TITLE "iPod mini" |
| 160 | #define UI_WIDTH 191 /* width of GUI window */ |
| 161 | #define UI_HEIGHT 365 /* height of GUI window */ |
| 162 | #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ |
| 163 | #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ |
Robert Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 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) */ |
Jens Arnold | 80865f2 | 2006-04-02 19:07:27 +0000 | [diff] [blame] | 166 | #define UI_LCD_POSX 24 /* x position of lcd */ |
| 167 | #define UI_LCD_POSY 17 /* y position of lcd */ |
| 168 | #define UI_LCD_WIDTH 138 |
| 169 | #define UI_LCD_HEIGHT 110 |
| 170 | |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 171 | #elif defined(IPOD_COLOR) |
| 172 | #define UI_TITLE "iPod Color" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 173 | #define UI_WIDTH 261 /* width of GUI window */ |
| 174 | #define UI_HEIGHT 493 /* height of GUI window */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 175 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 176 | #define UI_LCD_POSX 21 /* x position of lcd */ |
| 177 | #define UI_LCD_POSY 16 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 178 | #define UI_LCD_WIDTH 220 |
| 179 | #define UI_LCD_HEIGHT 176 |
| 180 | |
| 181 | #elif defined(IPOD_NANO) |
| 182 | #define UI_TITLE "iPod Nano" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 183 | #define UI_WIDTH 199 /* width of GUI window */ |
| 184 | #define UI_HEIGHT 421 /* height of GUI window */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 185 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 186 | #define UI_LCD_POSX 13 /* x position of lcd */ |
| 187 | #define UI_LCD_POSY 14 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 188 | #define UI_LCD_WIDTH 176 |
| 189 | #define UI_LCD_HEIGHT 132 |
| 190 | |
Dan Everton | 3ba0060 | 2006-02-13 21:46:28 +0000 | [diff] [blame] | 191 | #elif defined(IPOD_VIDEO) |
| 192 | #define UI_TITLE "iPod Video" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 193 | #define UI_WIDTH 350 /* width of GUI window */ |
| 194 | #define UI_HEIGHT 591 /* height of GUI window */ |
Dan Everton | 3ba0060 | 2006-02-13 21:46:28 +0000 | [diff] [blame] | 195 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 196 | #define UI_LCD_POSX 14 /* x position of lcd */ |
| 197 | #define UI_LCD_POSY 12 /* y position of lcd */ |
Dan Everton | 3ba0060 | 2006-02-13 21:46:28 +0000 | [diff] [blame] | 198 | #define UI_LCD_WIDTH 320 |
| 199 | #define UI_LCD_HEIGHT 240 |
| 200 | |
Linus Nielsen Feltzing | 9394175 | 2006-02-04 22:37:44 +0000 | [diff] [blame] | 201 | #elif defined(IAUDIO_X5) |
| 202 | #define UI_TITLE "iAudio X5" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 203 | #define UI_WIDTH 300 /* width of GUI window */ |
Jens Arnold | 05ddd9a | 2006-07-28 07:35:45 +0000 | [diff] [blame] | 204 | #define UI_HEIGHT 558 /* height of GUI window */ |
| 205 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 206 | #define UI_LCD_POSX 55 /* x position of lcd */ |
| 207 | #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */ |
| 208 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 209 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 210 | #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ |
Jens Arnold | 05ddd9a | 2006-07-28 07:35:45 +0000 | [diff] [blame] | 211 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 212 | #define UI_REMOTE_POSX 12 /* x position of remote lcd */ |
| 213 | #define UI_REMOTE_POSY 462 /* y position of remote lcd */ |
| 214 | #define UI_REMOTE_WIDTH 128 |
| 215 | #define UI_REMOTE_HEIGHT 96 |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 216 | |
Jens Arnold | 8876018 | 2007-03-05 00:04:00 +0000 | [diff] [blame] | 217 | #elif defined(IAUDIO_M5) |
| 218 | #define UI_TITLE "iAudio M5" |
Jens Arnold | 4bd7531 | 2007-03-05 18:36:17 +0000 | [diff] [blame] | 219 | #define UI_WIDTH 374 /* width of GUI window */ |
| 220 | #define UI_HEIGHT 650 /* height of GUI window */ |
Jens Arnold | 8876018 | 2007-03-05 00:04:00 +0000 | [diff] [blame] | 221 | /* high-colour */ |
Jens Arnold | 4bd7531 | 2007-03-05 18:36:17 +0000 | [diff] [blame] | 222 | #define UI_LCD_POSX 82 /* x position of lcd */ |
| 223 | #define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */ |
Jens Arnold | 8876018 | 2007-03-05 00:04:00 +0000 | [diff] [blame] | 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) */ |
Robert Kukla | 2aa4804 | 2008-03-02 22:00:39 +0000 | [diff] [blame] | 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) */ |
Jens Arnold | 8876018 | 2007-03-05 00:04:00 +0000 | [diff] [blame] | 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) */ |
Jens Arnold | 4bd7531 | 2007-03-05 18:36:17 +0000 | [diff] [blame] | 232 | #define UI_REMOTE_POSX 59 /* x position of remote lcd */ |
| 233 | #define UI_REMOTE_POSY 509 /* y position of remote lcd */ |
Jens Arnold | 8876018 | 2007-03-05 00:04:00 +0000 | [diff] [blame] | 234 | #define UI_REMOTE_WIDTH 128 |
| 235 | #define UI_REMOTE_HEIGHT 96 |
| 236 | |
Jens Arnold | 919c206 | 2008-03-14 00:17:59 +0000 | [diff] [blame] | 237 | #elif defined(IAUDIO_M3) |
| 238 | #define UI_TITLE "iAudio M3" |
| 239 | #define UI_WIDTH 397 /* width of GUI window */ |
| 240 | #define UI_HEIGHT 501 /* height of GUI window */ |
| 241 | #define UI_LCD_POSX 92 /* x position of lcd */ |
| 242 | #define UI_LCD_POSY 348 /* y position of lcd */ |
| 243 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no bklight) */ |
| 244 | #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (bklight) */ |
| 245 | #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ |
| 246 | #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ |
| 247 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 248 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
| 249 | |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 250 | #elif defined(GIGABEAT_F) |
| 251 | #define UI_TITLE "Toshiba Gigabeat" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 252 | #define UI_WIDTH 401 /* width of GUI window */ |
| 253 | #define UI_HEIGHT 655 /* height of GUI window */ |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 254 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 255 | #define UI_LCD_POSX 48 /* x position of lcd */ |
| 256 | #define UI_LCD_POSY 60 /* y position of lcd */ |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 257 | #define UI_LCD_WIDTH 240 |
| 258 | #define UI_LCD_HEIGHT 320 |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 259 | |
Will Robertson | fffa269 | 2008-02-08 08:33:17 +0000 | [diff] [blame] | 260 | #elif defined(GIGABEAT_S) |
| 261 | #define UI_TITLE "Toshiba Gigabeat" |
| 262 | #define UI_WIDTH 450 /* width of GUI window */ |
| 263 | #define UI_HEIGHT 688 /* height of GUI window */ |
| 264 | /* high-colour */ |
| 265 | #define UI_LCD_POSX 96 /* x position of lcd */ |
| 266 | #define UI_LCD_POSY 90 /* y position of lcd */ |
| 267 | #define UI_LCD_WIDTH 240 |
| 268 | #define UI_LCD_HEIGHT 320 |
| 269 | |
Karl Kurbjun | fdbc01c | 2007-10-21 23:12:17 +0000 | [diff] [blame] | 270 | #elif defined(MROBE_500) |
| 271 | #define UI_TITLE "Olympus M:Robe 500" |
| 272 | #define UI_WIDTH 401 /* width of GUI window */ |
| 273 | #define UI_HEIGHT 655 /* height of GUI window */ |
| 274 | /* high-colour */ |
| 275 | #define UI_LCD_POSX 48 /* x position of lcd */ |
| 276 | #define UI_LCD_POSY 60 /* y position of lcd */ |
| 277 | #define UI_LCD_WIDTH LCD_WIDTH |
| 278 | #define UI_LCD_HEIGHT LCD_HEIGHT |
| 279 | #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ |
| 280 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 281 | #define UI_REMOTE_POSX 50 /* x position of remote lcd */ |
| 282 | #define UI_REMOTE_POSY 403 /* y position of remote lcd */ |
| 283 | #define UI_REMOTE_WIDTH 79 |
| 284 | #define UI_REMOTE_HEIGHT 16 |
| 285 | |
Daniel Stenberg | e43b29d | 2006-08-03 20:25:39 +0000 | [diff] [blame] | 286 | #elif defined(IRIVER_H10) |
Barry Wardell | 99c2dc5 | 2006-08-19 19:21:17 +0000 | [diff] [blame] | 287 | #define UI_TITLE "iriver H10 20Gb" |
Daniel Stenberg | e43b29d | 2006-08-03 20:25:39 +0000 | [diff] [blame] | 288 | #define UI_WIDTH 392 /* width of GUI window */ |
| 289 | #define UI_HEIGHT 391 /* height of GUI window */ |
| 290 | /* high-colour */ |
| 291 | #define UI_LCD_POSX 111 /* x position of lcd */ |
| 292 | #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ |
| 293 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 294 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
Tomasz Malesinski | a19032c | 2006-08-18 19:14:11 +0000 | [diff] [blame] | 295 | |
Barry Wardell | 99c2dc5 | 2006-08-19 19:21:17 +0000 | [diff] [blame] | 296 | #elif defined(IRIVER_H10_5GB) |
| 297 | #define UI_TITLE "iriver H10 5/6Gb" |
| 298 | #define UI_WIDTH 353 /* width of GUI window */ |
| 299 | #define UI_HEIGHT 460 /* height of GUI window */ |
| 300 | /* high-colour */ |
| 301 | #define UI_LCD_POSX 112 /* x position of lcd */ |
| 302 | #define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */ |
| 303 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 304 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
| 305 | |
Barry Wardell | 24f4a2a | 2006-10-26 13:38:09 +0000 | [diff] [blame] | 306 | #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 Arigo | e14a760 | 2007-09-08 03:10:22 +0000 | [diff] [blame] | 316 | #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 Malesinski | a19032c | 2006-08-18 19:14:11 +0000 | [diff] [blame] | 326 | #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 Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 332 | #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 Malesinski | a19032c | 2006-08-18 19:14:11 +0000 | [diff] [blame] | 334 | #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 Chapman | d64e626 | 2007-01-14 13:48:09 +0000 | [diff] [blame] | 339 | #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 Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 350 | #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 Chapman | d64e626 | 2007-01-14 13:48:09 +0000 | [diff] [blame] | 352 | |
Robert Kukla | c1791a5 | 2008-01-20 22:57:49 +0000 | [diff] [blame] | 353 | #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 Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 357 | #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 Kukla | c1791a5 | 2008-01-20 22:57:49 +0000 | [diff] [blame] | 361 | #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 Purchase | fa85aa8 | 2008-01-22 22:48:36 +0000 | [diff] [blame] | 365 | |
| 366 | #elif defined(COWON_D2) |
| 367 | #define UI_TITLE "Cowon D2" |
Rob Purchase | d8e3abf | 2008-01-23 22:19:53 +0000 | [diff] [blame] | 368 | #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 Purchase | fa85aa8 | 2008-01-22 22:48:36 +0000 | [diff] [blame] | 372 | #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 Kukla | 3e3e1d5 | 2008-03-02 21:28:26 +0000 | [diff] [blame] | 376 | #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 Purchase | fa85aa8 | 2008-01-22 22:48:36 +0000 | [diff] [blame] | 378 | |
Maurus Cuelenaere | 1ea884b | 2008-05-15 18:01:14 +0000 | [diff] [blame] | 379 | #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 Cuelenaere | 02883e0 | 2008-05-14 21:14:06 +0000 | [diff] [blame] | 385 | #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 Cuelenaere | 1ea884b | 2008-05-15 18:01:14 +0000 | [diff] [blame] | 396 | #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 Hirschberg | 7b10ef9 | 2008-06-27 23:24:34 +0000 | [diff] [blame] | 409 | #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 Stenberg | e43b29d | 2006-08-03 20:25:39 +0000 | [diff] [blame] | 422 | #endif |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 423 | extern SDL_Surface *gui_surface; |
Dan Everton | ee2019d | 2006-02-09 11:17:52 +0000 | [diff] [blame] | 424 | extern bool background; /* True if the background image is enabled */ |
Dan Everton | b585e87 | 2006-02-09 21:49:28 +0000 | [diff] [blame] | 425 | extern int display_zoom; |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 426 | |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 427 | #endif /* #ifndef __UISDL_H__ */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 428 | |