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 | * |
| 12 | * All files in this archive are subject to the GNU General Public License. |
| 13 | * See the file COPYING in the source tree root for full license agreement. |
| 14 | * |
| 15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 16 | * KIND, either express or implied. |
| 17 | * |
| 18 | ****************************************************************************/ |
| 19 | |
| 20 | #ifndef __UISDL_H__ |
| 21 | #define __UISDL_H__ |
| 22 | |
Dan Everton | b585e87 | 2006-02-09 21:49:28 +0000 | [diff] [blame] | 23 | #include <stdbool.h> |
| 24 | #include "SDL.h" |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 25 | |
Jens Arnold | a57608c | 2006-02-08 13:54:21 +0000 | [diff] [blame] | 26 | /* colour definitions are R, G, B */ |
| 27 | |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 28 | #if defined(ARCHOS_RECORDER) |
| 29 | #define UI_TITLE "Jukebox Recorder" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 30 | #define UI_WIDTH 270 /* width of GUI window */ |
| 31 | #define UI_HEIGHT 406 /* height of GUI window */ |
| 32 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 33 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ |
| 34 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 35 | #define UI_LCD_POSX 80 /* x position of lcd */ |
| 36 | #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] | 37 | #define UI_LCD_WIDTH 112 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 38 | #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 39 | |
| 40 | #elif defined(ARCHOS_PLAYER) |
| 41 | #define UI_TITLE "Jukebox Player" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 42 | #define UI_WIDTH 284 /* width of GUI window */ |
| 43 | #define UI_HEIGHT 420 /* height of GUI window */ |
| 44 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 45 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ |
| 46 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 47 | #define UI_LCD_POSX 75 /* x position of lcd */ |
| 48 | #define UI_LCD_POSY 116 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 49 | #define UI_LCD_WIDTH 132 |
Jens Arnold | 3e496e3 | 2006-02-20 00:31:10 +0000 | [diff] [blame] | 50 | #define UI_LCD_HEIGHT 64 |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 51 | |
| 52 | #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) |
| 53 | #define UI_TITLE "Jukebox FM Recorder" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 54 | #define UI_WIDTH 285 /* width of GUI window */ |
| 55 | #define UI_HEIGHT 414 /* height of GUI window */ |
| 56 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 57 | #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ |
| 58 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 59 | #define UI_LCD_POSX 87 /* x position of lcd */ |
| 60 | #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] | 61 | #define UI_LCD_WIDTH 112 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 62 | #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 63 | |
| 64 | #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM) |
| 65 | #define UI_TITLE "Ondio" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 66 | #define UI_WIDTH 155 /* width of GUI window */ |
| 67 | #define UI_HEIGHT 334 /* height of GUI window */ |
| 68 | #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] | 69 | #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 70 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 71 | #define UI_LCD_POSX 21 /* x position of lcd */ |
| 72 | #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] | 73 | #define UI_LCD_WIDTH 112 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 74 | #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 75 | |
| 76 | #elif defined(IRIVER_H120) || defined(IRIVER_H100) |
| 77 | #define UI_TITLE "iriver H1x0" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 78 | #define UI_WIDTH 379 /* width of GUI window */ |
| 79 | #define UI_HEIGHT 508 /* height of GUI window */ |
| 80 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 81 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
| 82 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 83 | #define UI_LCD_POSX 109 /* x position of lcd */ |
| 84 | #define UI_LCD_POSY 23 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 85 | #define UI_LCD_WIDTH 160 |
| 86 | #define UI_LCD_HEIGHT 128 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 87 | #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ |
| 88 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 89 | #define UI_REMOTE_POSX 50 /* x position of remote lcd */ |
| 90 | #define UI_REMOTE_POSY 403 /* y position of remote lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 91 | #define UI_REMOTE_WIDTH 128 |
| 92 | #define UI_REMOTE_HEIGHT 64 |
| 93 | |
Dan Everton | b585e87 | 2006-02-09 21:49:28 +0000 | [diff] [blame] | 94 | #elif defined(IRIVER_H300) |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 95 | #define UI_TITLE "iriver H300" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 96 | #define UI_WIDTH 288 /* width of GUI window */ |
| 97 | #define UI_HEIGHT 581 /* height of GUI window */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 98 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 99 | #define UI_LCD_POSX 26 /* x position of lcd */ |
| 100 | #define UI_LCD_POSY 36 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 101 | #define UI_LCD_WIDTH 220 |
| 102 | #define UI_LCD_HEIGHT 176 |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 103 | #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ |
| 104 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 105 | #define UI_REMOTE_POSX 12 /* x position of remote lcd */ |
| 106 | #define UI_REMOTE_POSY 478 /* y position of remote lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 107 | #define UI_REMOTE_WIDTH 128 |
| 108 | #define UI_REMOTE_HEIGHT 64 |
| 109 | |
Jens Arnold | edc19fb | 2006-10-16 18:15:36 +0000 | [diff] [blame] | 110 | #elif defined(IPOD_3G) |
| 111 | #define UI_TITLE "iPod 3G" |
| 112 | #define UI_WIDTH 218 /* width of GUI window */ |
| 113 | #define UI_HEIGHT 389 /* height of GUI window */ |
| 114 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 115 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
| 116 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 117 | #define UI_LCD_POSX 29 /* x position of lcd */ |
| 118 | #define UI_LCD_POSY 16 /* y position of lcd */ |
| 119 | #define UI_LCD_WIDTH 160 |
| 120 | #define UI_LCD_HEIGHT 128 |
| 121 | |
Dave Chapman | 8ad2df8 | 2006-02-09 00:48:53 +0000 | [diff] [blame] | 122 | #elif defined(IPOD_4G) |
| 123 | #define UI_TITLE "iPod 4G" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 124 | #define UI_WIDTH 196 /* width of GUI window */ |
| 125 | #define UI_HEIGHT 370 /* height of GUI window */ |
| 126 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 127 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
| 128 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 129 | #define UI_LCD_POSX 19 /* x position of lcd */ |
| 130 | #define UI_LCD_POSY 14 /* y position of lcd */ |
Dave Chapman | 8ad2df8 | 2006-02-09 00:48:53 +0000 | [diff] [blame] | 131 | #define UI_LCD_WIDTH 160 |
| 132 | #define UI_LCD_HEIGHT 128 |
| 133 | |
Jens Arnold | 80865f2 | 2006-04-02 19:07:27 +0000 | [diff] [blame] | 134 | #elif defined(IPOD_MINI) || defined(IPOD_MINI2G) |
| 135 | #define UI_TITLE "iPod mini" |
| 136 | #define UI_WIDTH 191 /* width of GUI window */ |
| 137 | #define UI_HEIGHT 365 /* height of GUI window */ |
| 138 | #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ |
| 139 | #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ |
| 140 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 141 | #define UI_LCD_POSX 24 /* x position of lcd */ |
| 142 | #define UI_LCD_POSY 17 /* y position of lcd */ |
| 143 | #define UI_LCD_WIDTH 138 |
| 144 | #define UI_LCD_HEIGHT 110 |
| 145 | |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 146 | #elif defined(IPOD_COLOR) |
| 147 | #define UI_TITLE "iPod Color" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 148 | #define UI_WIDTH 261 /* width of GUI window */ |
| 149 | #define UI_HEIGHT 493 /* height of GUI window */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 150 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 151 | #define UI_LCD_POSX 21 /* x position of lcd */ |
| 152 | #define UI_LCD_POSY 16 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 153 | #define UI_LCD_WIDTH 220 |
| 154 | #define UI_LCD_HEIGHT 176 |
| 155 | |
| 156 | #elif defined(IPOD_NANO) |
| 157 | #define UI_TITLE "iPod Nano" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 158 | #define UI_WIDTH 199 /* width of GUI window */ |
| 159 | #define UI_HEIGHT 421 /* height of GUI window */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 160 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 161 | #define UI_LCD_POSX 13 /* x position of lcd */ |
| 162 | #define UI_LCD_POSY 14 /* y position of lcd */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 163 | #define UI_LCD_WIDTH 176 |
| 164 | #define UI_LCD_HEIGHT 132 |
| 165 | |
Dan Everton | 3ba0060 | 2006-02-13 21:46:28 +0000 | [diff] [blame] | 166 | #elif defined(IPOD_VIDEO) |
| 167 | #define UI_TITLE "iPod Video" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 168 | #define UI_WIDTH 350 /* width of GUI window */ |
| 169 | #define UI_HEIGHT 591 /* height of GUI window */ |
Dan Everton | 3ba0060 | 2006-02-13 21:46:28 +0000 | [diff] [blame] | 170 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 171 | #define UI_LCD_POSX 14 /* x position of lcd */ |
| 172 | #define UI_LCD_POSY 12 /* y position of lcd */ |
Dan Everton | 3ba0060 | 2006-02-13 21:46:28 +0000 | [diff] [blame] | 173 | #define UI_LCD_WIDTH 320 |
| 174 | #define UI_LCD_HEIGHT 240 |
| 175 | |
Linus Nielsen Feltzing | 9394175 | 2006-02-04 22:37:44 +0000 | [diff] [blame] | 176 | #elif defined(IAUDIO_X5) |
| 177 | #define UI_TITLE "iAudio X5" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 178 | #define UI_WIDTH 300 /* width of GUI window */ |
Jens Arnold | 05ddd9a | 2006-07-28 07:35:45 +0000 | [diff] [blame] | 179 | #define UI_HEIGHT 558 /* height of GUI window */ |
| 180 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 181 | #define UI_LCD_POSX 55 /* x position of lcd */ |
| 182 | #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */ |
| 183 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 184 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 185 | #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] | 186 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 187 | #define UI_REMOTE_POSX 12 /* x position of remote lcd */ |
| 188 | #define UI_REMOTE_POSY 462 /* y position of remote lcd */ |
| 189 | #define UI_REMOTE_WIDTH 128 |
| 190 | #define UI_REMOTE_HEIGHT 96 |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 191 | |
Jens Arnold | 8876018 | 2007-03-05 00:04:00 +0000 | [diff] [blame^] | 192 | #elif defined(IAUDIO_M5) |
| 193 | #define UI_TITLE "iAudio M5" |
| 194 | #define UI_WIDTH 300 /* width of GUI window */ |
| 195 | #define UI_HEIGHT 558 /* height of GUI window */ |
| 196 | /* high-colour */ |
| 197 | #define UI_LCD_POSX 55 /* x position of lcd */ |
| 198 | #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */ |
| 199 | #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ |
| 200 | #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ |
| 201 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 202 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
| 203 | #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ |
| 204 | #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ |
| 205 | #define UI_REMOTE_POSX 12 /* x position of remote lcd */ |
| 206 | #define UI_REMOTE_POSY 462 /* y position of remote lcd */ |
| 207 | #define UI_REMOTE_WIDTH 128 |
| 208 | #define UI_REMOTE_HEIGHT 96 |
| 209 | |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 210 | #elif defined(GIGABEAT_F) |
| 211 | #define UI_TITLE "Toshiba Gigabeat" |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 212 | #define UI_WIDTH 401 /* width of GUI window */ |
| 213 | #define UI_HEIGHT 655 /* height of GUI window */ |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 214 | /* high-colour */ |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 215 | #define UI_LCD_POSX 48 /* x position of lcd */ |
| 216 | #define UI_LCD_POSY 60 /* y position of lcd */ |
Marcoen Hirschberg | 338e2bb | 2006-02-24 15:42:52 +0000 | [diff] [blame] | 217 | #define UI_LCD_WIDTH 240 |
| 218 | #define UI_LCD_HEIGHT 320 |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 219 | |
Daniel Stenberg | e43b29d | 2006-08-03 20:25:39 +0000 | [diff] [blame] | 220 | #elif defined(IRIVER_H10) |
Barry Wardell | 99c2dc5 | 2006-08-19 19:21:17 +0000 | [diff] [blame] | 221 | #define UI_TITLE "iriver H10 20Gb" |
Daniel Stenberg | e43b29d | 2006-08-03 20:25:39 +0000 | [diff] [blame] | 222 | #define UI_WIDTH 392 /* width of GUI window */ |
| 223 | #define UI_HEIGHT 391 /* height of GUI window */ |
| 224 | /* high-colour */ |
| 225 | #define UI_LCD_POSX 111 /* x position of lcd */ |
| 226 | #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ |
| 227 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 228 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
Tomasz Malesinski | a19032c | 2006-08-18 19:14:11 +0000 | [diff] [blame] | 229 | |
Barry Wardell | 99c2dc5 | 2006-08-19 19:21:17 +0000 | [diff] [blame] | 230 | #elif defined(IRIVER_H10_5GB) |
| 231 | #define UI_TITLE "iriver H10 5/6Gb" |
| 232 | #define UI_WIDTH 353 /* width of GUI window */ |
| 233 | #define UI_HEIGHT 460 /* height of GUI window */ |
| 234 | /* high-colour */ |
| 235 | #define UI_LCD_POSX 112 /* x position of lcd */ |
| 236 | #define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */ |
| 237 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 238 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
| 239 | |
Barry Wardell | 24f4a2a | 2006-10-26 13:38:09 +0000 | [diff] [blame] | 240 | #elif defined(SANSA_E200) |
| 241 | #define UI_TITLE "Sansa e200" |
| 242 | #define UI_WIDTH 260 /* width of GUI window */ |
| 243 | #define UI_HEIGHT 502 /* height of GUI window */ |
| 244 | /* high-colour */ |
| 245 | #define UI_LCD_POSX 42 /* x position of lcd */ |
| 246 | #define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */ |
| 247 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 248 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
| 249 | |
Tomasz Malesinski | a19032c | 2006-08-18 19:14:11 +0000 | [diff] [blame] | 250 | #elif defined(IRIVER_IFP7XX) |
| 251 | #define UI_TITLE "iriver iFP7xx" |
| 252 | #define UI_WIDTH 425 /* width of GUI window */ |
| 253 | #define UI_HEIGHT 183 /* height of GUI window */ |
| 254 | #define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */ |
| 255 | #define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */ |
| 256 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 257 | #define UI_LCD_POSX 115 /* x position of lcd */ |
| 258 | #define UI_LCD_POSY 54 /* y position of lcd */ |
| 259 | #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ |
| 260 | #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ |
| 261 | |
Dave Chapman | d64e626 | 2007-01-14 13:48:09 +0000 | [diff] [blame] | 262 | #elif defined(ARCHOS_AV300) |
| 263 | #define UI_TITLE "Archos AV300" |
| 264 | /* We are temporarily using a 2bpp LCD driver and dummy bitmap */ |
| 265 | #define UI_WIDTH 420 /* width of GUI window */ |
| 266 | #define UI_HEIGHT 340 /* height of GUI window */ |
| 267 | #define UI_LCD_POSX 50 /* x position of lcd */ |
| 268 | #define UI_LCD_POSY 50 /* y position of lcd */ |
| 269 | #define UI_LCD_WIDTH 320 |
| 270 | #define UI_LCD_HEIGHT 240 |
| 271 | #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ |
| 272 | #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ |
| 273 | #define UI_LCD_BLACK 0, 0, 0 /* black */ |
| 274 | |
Daniel Stenberg | e43b29d | 2006-08-03 20:25:39 +0000 | [diff] [blame] | 275 | #endif |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 276 | extern SDL_Surface *gui_surface; |
Dan Everton | ee2019d | 2006-02-09 11:17:52 +0000 | [diff] [blame] | 277 | extern bool background; /* True if the background image is enabled */ |
Dan Everton | b585e87 | 2006-02-09 21:49:28 +0000 | [diff] [blame] | 278 | extern int display_zoom; |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 279 | |
Daniel Stenberg | 4582f23 | 2006-03-19 06:59:36 +0000 | [diff] [blame] | 280 | #endif /* #ifndef __UISDL_H__ */ |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 281 | |