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 | |
| 23 | #include <SDL.h> |
| 24 | #include <SDL_mutex.h> |
| 25 | #include <SDL_thread.h> |
| 26 | #include "lcd-sdl.h" |
| 27 | |
| 28 | #if defined(ARCHOS_RECORDER) |
| 29 | #define UI_TITLE "Jukebox Recorder" |
| 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) |
| 37 | #define UI_LCD_WIDTH 112 |
| 38 | #define UI_LCD_HEIGHT 64 // (80 for real aspect) |
| 39 | |
| 40 | #elif defined(ARCHOS_PLAYER) |
| 41 | #define UI_TITLE "Jukebox Player" |
| 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 111 // y position of lcd |
| 49 | #define UI_LCD_WIDTH 132 |
| 50 | #define UI_LCD_HEIGHT 75 |
| 51 | |
| 52 | #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) |
| 53 | #define UI_TITLE "Jukebox FM Recorder" |
| 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) |
| 61 | #define UI_LCD_WIDTH 112 |
| 62 | #define UI_LCD_HEIGHT 64 // (80 for real aspect) |
| 63 | |
| 64 | #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM) |
| 65 | #define UI_TITLE "Ondio" |
| 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) |
| 69 | #define UI_LCD_BGCOLORLIGHT 90, 145, 90 // bkgnd color of LCD (backlight) |
| 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) |
| 73 | #define UI_LCD_WIDTH 112 |
| 74 | #define UI_LCD_HEIGHT 64 // (80 for real aspect) |
| 75 | |
| 76 | #elif defined(IRIVER_H120) || defined(IRIVER_H100) |
| 77 | #define UI_TITLE "iriver H1x0" |
| 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 230, 216, 173 // 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 |
| 85 | #define UI_LCD_WIDTH 160 |
| 86 | #define UI_LCD_HEIGHT 128 |
| 87 | #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight) |
| 88 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // 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 |
| 91 | #define UI_REMOTE_WIDTH 128 |
| 92 | #define UI_REMOTE_HEIGHT 64 |
| 93 | |
| 94 | #elif defined(IRIVER_H300_SERIES) |
| 95 | #define UI_TITLE "iriver H300" |
| 96 | #define UI_WIDTH 288 // width of GUI window |
| 97 | #define UI_HEIGHT 581 // height of GUI window |
| 98 | /* high-colour */ |
| 99 | #define UI_LCD_POSX 26 // x position of lcd |
| 100 | #define UI_LCD_POSY 36 // y position of lcd |
| 101 | #define UI_LCD_WIDTH 220 |
| 102 | #define UI_LCD_HEIGHT 176 |
| 103 | #define UI_REMOTE_BGCOLOR 90, 145, 90 // bkgnd of remote lcd (no bklight) |
| 104 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // 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 |
| 107 | #define UI_REMOTE_WIDTH 128 |
| 108 | #define UI_REMOTE_HEIGHT 64 |
| 109 | |
| 110 | #elif defined(IPOD_COLOR) |
| 111 | #define UI_TITLE "iPod Color" |
| 112 | #define UI_WIDTH 261 // width of GUI window |
| 113 | #define UI_HEIGHT 493 // height of GUI window |
| 114 | /* high-colour */ |
| 115 | #define UI_LCD_POSX 21 // x position of lcd |
| 116 | #define UI_LCD_POSY 16 // y position of lcd |
| 117 | #define UI_LCD_WIDTH 220 |
| 118 | #define UI_LCD_HEIGHT 176 |
| 119 | |
| 120 | #elif defined(IPOD_NANO) |
| 121 | #define UI_TITLE "iPod Nano" |
| 122 | #define UI_WIDTH 199 // width of GUI window |
| 123 | #define UI_HEIGHT 421 // height of GUI window |
| 124 | /* high-colour */ |
| 125 | #define UI_LCD_POSX 13 // x position of lcd |
| 126 | #define UI_LCD_POSY 14 // y position of lcd |
| 127 | #define UI_LCD_WIDTH 176 |
| 128 | #define UI_LCD_HEIGHT 132 |
| 129 | |
| 130 | #elif defined(ARCHOS_GMINI120) |
| 131 | #define UI_TITLE "Gmini 120" |
| 132 | #define UI_WIDTH 370 // width of GUI window |
| 133 | #define UI_HEIGHT 264 // height of GUI window |
| 134 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) |
| 135 | #define UI_LCD_BGCOLORLIGHT 230, 160, 60 // bkgnd color of LCD (backlight) |
| 136 | #define UI_LCD_BLACK 0, 0, 0 // black |
| 137 | #define UI_LCD_POSX 85 // x position of lcd |
| 138 | #define UI_LCD_POSY 61 // y position of lcd (74 for real aspect) |
| 139 | #define UI_LCD_WIDTH 192 // * 1.5 |
| 140 | #define UI_LCD_HEIGHT 96 // * 1.5 |
| 141 | |
Linus Nielsen Feltzing | 9394175 | 2006-02-04 22:37:44 +0000 | [diff] [blame^] | 142 | |
| 143 | #elif defined(IAUDIO_X5) |
| 144 | #define UI_TITLE "iAudio X5" |
| 145 | #define UI_WIDTH 300 // width of GUI window |
| 146 | #define UI_HEIGHT 462 // height of GUI window |
| 147 | #define UI_LCD_BGCOLOR 90, 145, 90 // bkgnd color of LCD (no backlight) |
| 148 | #define UI_LCD_BGCOLORLIGHT 230, 160, 60 // bkgnd color of LCD (backlight) |
| 149 | #define UI_LCD_BLACK 0, 0, 0 // black |
| 150 | #define UI_LCD_POSX 55 // x position of lcd |
| 151 | #define UI_LCD_POSY 61 // y position of lcd (74 for real aspect) |
| 152 | #define UI_LCD_WIDTH LCD_WIDTH // * 1.5 |
| 153 | #define UI_LCD_HEIGHT LCD_HEIGHT // * 1.5 |
| 154 | |
| 155 | #define UI_REMOTE_POSX 12 // x position of remote lcd |
| 156 | #define UI_REMOTE_POSY 478 // y position of remote lcd |
| 157 | #define UI_REMOTE_WIDTH 128 |
| 158 | #define UI_REMOTE_HEIGHT 64 |
| 159 | |
| 160 | #define UI_REMOTE_BGCOLORLIGHT 250, 180, 130 // bkgnd of remote lcd (bklight) |
Linus Nielsen Feltzing | 3f66e8e | 2006-02-03 16:01:16 +0000 | [diff] [blame] | 161 | #endif |
| 162 | |
| 163 | extern SDL_Surface *gui_surface; |
| 164 | |
| 165 | #endif // #ifndef __UISDL_H__ |
| 166 | |