From 0d935ce75e1408dfd9832ae7dbb7d84df50a645d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 9 Feb 2009 00:32:59 +0000 Subject: 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 --- uisimulator/sdl/uisdl.h | 218 +++--------------------------------------------- 1 file changed, 10 insertions(+), 208 deletions(-) (limited to 'uisimulator/sdl/uisdl.h') 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 @@ #define UI_TITLE "Jukebox Recorder" #define UI_WIDTH 270 /* width of GUI window */ #define UI_HEIGHT 406 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 80 /* x position of lcd */ -#define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */ -#define UI_LCD_WIDTH 112 -#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ +#define UI_LCD_POSY 104 /* y position of lcd */ #elif defined(ARCHOS_PLAYER) #define UI_TITLE "Jukebox Player" #define UI_WIDTH 284 /* width of GUI window */ #define UI_HEIGHT 420 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 75 /* x position of lcd */ #define UI_LCD_POSY 116 /* y position of lcd */ -#define UI_LCD_WIDTH 132 -#define UI_LCD_HEIGHT 64 #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) #define UI_TITLE "Jukebox FM Recorder" #define UI_WIDTH 285 /* width of GUI window */ #define UI_HEIGHT 414 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 87 /* x position of lcd */ -#define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */ -#define UI_LCD_WIDTH 112 -#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ +#define UI_LCD_POSY 77 /* y position of lcd */ #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM) #define UI_TITLE "Ondio" #define UI_WIDTH 155 /* width of GUI window */ #define UI_HEIGHT 334 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 21 /* x position of lcd */ -#define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_WIDTH 112 -#define UI_LCD_HEIGHT 64 /* (80 for real aspect) */ +#define UI_LCD_POSY 82 /* y position of lcd */ #elif defined(IRIVER_H120) || defined(IRIVER_H100) #define UI_TITLE "iriver H1x0" #define UI_WIDTH 379 /* width of GUI window */ #define UI_HEIGHT 508 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 109 /* x position of lcd */ #define UI_LCD_POSY 23 /* y position of lcd */ -#define UI_LCD_WIDTH 160 -#define UI_LCD_HEIGHT 128 -#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ -#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ -#define UI_REMOTE_FGCOLOR 0, 0, 0 /* foreground color of remote LCD (no backlight) */ -#define UI_REMOTE_FGCOLORLIGHT 0, 0, 0 /* foreground color of remote LCD (backlight) */ #define UI_REMOTE_POSX 50 /* x position of remote lcd */ #define UI_REMOTE_POSY 403 /* y position of remote lcd */ -#define UI_REMOTE_WIDTH 128 -#define UI_REMOTE_HEIGHT 64 #elif defined(IRIVER_H300) #define UI_TITLE "iriver H300" #define UI_WIDTH 288 /* width of GUI window */ #define UI_HEIGHT 581 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 26 /* x position of lcd */ #define UI_LCD_POSY 36 /* y position of lcd */ -#define UI_LCD_WIDTH 220 -#define UI_LCD_HEIGHT 176 -#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ -#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ #define UI_REMOTE_POSX 12 /* x position of remote lcd */ #define UI_REMOTE_POSY 478 /* y position of remote lcd */ -#define UI_REMOTE_WIDTH 128 -#define UI_REMOTE_HEIGHT 64 #elif defined(IPOD_1G2G) #define UI_TITLE "iPod 1G/2G" #define UI_WIDTH 224 /* width of GUI window */ #define UI_HEIGHT 382 /* height of GUI window */ -#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 32 /* x position of lcd */ #define UI_LCD_POSY 12 /* y position of lcd */ -#define UI_LCD_WIDTH 160 -#define UI_LCD_HEIGHT 128 #elif defined(IPOD_3G) #define UI_TITLE "iPod 3G" #define UI_WIDTH 218 /* width of GUI window */ #define UI_HEIGHT 389 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 29 /* x position of lcd */ #define UI_LCD_POSY 16 /* y position of lcd */ -#define UI_LCD_WIDTH 160 -#define UI_LCD_HEIGHT 128 #elif defined(IPOD_4G) #define UI_TITLE "iPod 4G" #define UI_WIDTH 196 /* width of GUI window */ #define UI_HEIGHT 370 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 19 /* x position of lcd */ #define UI_LCD_POSY 14 /* y position of lcd */ -#define UI_LCD_WIDTH 160 -#define UI_LCD_HEIGHT 128 #elif defined(IPOD_MINI) || defined(IPOD_MINI2G) #define UI_TITLE "iPod mini" #define UI_WIDTH 191 /* width of GUI window */ #define UI_HEIGHT 365 /* height of GUI window */ -#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 24 /* x position of lcd */ #define UI_LCD_POSY 17 /* y position of lcd */ -#define UI_LCD_WIDTH 138 -#define UI_LCD_HEIGHT 110 #elif defined(IPOD_COLOR) #define UI_TITLE "iPod Color" #define UI_WIDTH 261 /* width of GUI window */ #define UI_HEIGHT 493 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 21 /* x position of lcd */ #define UI_LCD_POSY 16 /* y position of lcd */ -#define UI_LCD_WIDTH 220 -#define UI_LCD_HEIGHT 176 #elif defined(IPOD_NANO) #define UI_TITLE "iPod Nano" #define UI_WIDTH 199 /* width of GUI window */ #define UI_HEIGHT 421 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 13 /* x position of lcd */ #define UI_LCD_POSY 14 /* y position of lcd */ -#define UI_LCD_WIDTH 176 -#define UI_LCD_HEIGHT 132 #elif defined(IPOD_VIDEO) #define UI_TITLE "iPod Video" #define UI_WIDTH 350 /* width of GUI window */ #define UI_HEIGHT 591 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 14 /* x position of lcd */ #define UI_LCD_POSY 12 /* y position of lcd */ -#define UI_LCD_WIDTH 320 -#define UI_LCD_HEIGHT 240 #elif defined(IAUDIO_X5) #define UI_TITLE "iAudio X5" #define UI_WIDTH 300 /* width of GUI window */ #define UI_HEIGHT 558 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 55 /* x position of lcd */ -#define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ -#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ -#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ +#define UI_LCD_POSY 61 /* y position of lcd */ #define UI_REMOTE_POSX 12 /* x position of remote lcd */ #define UI_REMOTE_POSY 462 /* y position of remote lcd */ -#define UI_REMOTE_WIDTH 128 -#define UI_REMOTE_HEIGHT 96 #elif defined(IAUDIO_M5) #define UI_TITLE "iAudio M5" #define UI_WIDTH 374 /* width of GUI window */ #define UI_HEIGHT 650 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 82 /* x position of lcd */ -#define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ -#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ -#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ +#define UI_LCD_POSY 74 /* y position of lcd */ #define UI_REMOTE_POSX 59 /* x position of remote lcd */ #define UI_REMOTE_POSY 509 /* y position of remote lcd */ -#define UI_REMOTE_WIDTH 128 -#define UI_REMOTE_HEIGHT 96 #elif defined(IAUDIO_M3) #define UI_TITLE "iAudio M3" @@ -240,68 +146,43 @@ #define UI_HEIGHT 501 /* height of GUI window */ #define UI_LCD_POSX 92 /* x position of lcd */ #define UI_LCD_POSY 348 /* y position of lcd */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no bklight) */ -#define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (bklight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ #elif defined(GIGABEAT_F) #define UI_TITLE "Toshiba Gigabeat" #define UI_WIDTH 401 /* width of GUI window */ #define UI_HEIGHT 655 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 48 /* x position of lcd */ #define UI_LCD_POSY 60 /* y position of lcd */ -#define UI_LCD_WIDTH 240 -#define UI_LCD_HEIGHT 320 #elif defined(GIGABEAT_S) #define UI_TITLE "Toshiba Gigabeat" #define UI_WIDTH 450 /* width of GUI window */ #define UI_HEIGHT 688 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 96 /* x position of lcd */ #define UI_LCD_POSY 90 /* y position of lcd */ -#define UI_LCD_WIDTH 240 -#define UI_LCD_HEIGHT 320 #elif defined(MROBE_500) #define UI_TITLE "Olympus M:Robe 500" #define UI_WIDTH 401 /* width of GUI window */ #define UI_HEIGHT 655 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 48 /* x position of lcd */ #define UI_LCD_POSY 60 /* y position of lcd */ -#define UI_LCD_WIDTH LCD_WIDTH -#define UI_LCD_HEIGHT LCD_HEIGHT -#define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */ -#define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */ #define UI_REMOTE_POSX 50 /* x position of remote lcd */ #define UI_REMOTE_POSY 403 /* y position of remote lcd */ -#define UI_REMOTE_WIDTH 79 -#define UI_REMOTE_HEIGHT 16 #elif defined(IRIVER_H10) #define UI_TITLE "iriver H10 20Gb" #define UI_WIDTH 392 /* width of GUI window */ #define UI_HEIGHT 391 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 111 /* x position of lcd */ -#define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ +#define UI_LCD_POSY 30 /* y position of lcd */ #elif defined(IRIVER_H10_5GB) #define UI_TITLE "iriver H10 5/6Gb" #define UI_WIDTH 353 /* width of GUI window */ #define UI_HEIGHT 460 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 112 /* x position of lcd */ -#define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ +#define UI_LCD_POSY 45 /* y position of lcd */ #elif defined(SANSA_E200) || defined(SANSA_E200V2) #ifdef SANSA_E200 @@ -311,35 +192,23 @@ #endif #define UI_WIDTH 260 /* width of GUI window */ #define UI_HEIGHT 502 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 42 /* x position of lcd */ -#define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ +#define UI_LCD_POSY 37 /* y position of lcd */ #elif defined(SANSA_C200) #define UI_TITLE "Sansa c200" #define UI_WIDTH 350 /* width of GUI window */ #define UI_HEIGHT 152 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 42 /* x position of lcd */ -#define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ +#define UI_LCD_POSY 35 /* y position of lcd */ #elif defined(IRIVER_IFP7XX) #define UI_TITLE "iriver iFP7xx" #define UI_WIDTH 425 /* width of GUI window */ #define UI_HEIGHT 183 /* height of GUI window */ -#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 115 /* x position of lcd */ #define UI_LCD_POSY 54 /* y position of lcd */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ - + #elif defined(ARCHOS_AV300) #define UI_TITLE "Archos AV300" /* We are temporarily using a 2bpp LCD driver and dummy bitmap */ @@ -347,25 +216,13 @@ #define UI_HEIGHT 340 /* height of GUI window */ #define UI_LCD_POSX 50 /* x position of lcd */ #define UI_LCD_POSY 50 /* y position of lcd */ -#define UI_LCD_WIDTH 320 -#define UI_LCD_HEIGHT 240 -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #elif defined(MROBE_100) #define UI_TITLE "Olympus M:Robe 100" #define UI_WIDTH 247 /* width of GUI window */ #define UI_HEIGHT 416 /* height of GUI window */ -#define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 94, 2, 2 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 50, 50, 50 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 241, 6, 3 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 43 /* x position of lcd */ #define UI_LCD_POSY 25 /* y position of lcd */ -#define UI_LCD_WIDTH 160 -#define UI_LCD_HEIGHT 128 #elif defined(COWON_D2) #define UI_TITLE "Cowon D2" @@ -373,25 +230,13 @@ #define UI_HEIGHT 368 /* height of GUI window */ #define UI_LCD_POSX 58 /* x position of lcd */ #define UI_LCD_POSY 67 /* y position of lcd */ -#define UI_LCD_WIDTH 320 -#define UI_LCD_HEIGHT 240 -#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #elif defined(IAUDIO_7) #define UI_TITLE "iAudio7" #define UI_WIDTH 494 /* width of GUI window */ #define UI_HEIGHT 214 /* height of GUI window */ -#define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 131 /* x position of lcd */ #define UI_LCD_POSY 38 /* y position of lcd */ -#define UI_LCD_WIDTH 160 -#define UI_LCD_HEIGHT 128 #elif defined(CREATIVE_ZVM) || defined(CREATIVE_ZVM60GB) #ifdef CREATIVE_ZVM @@ -403,12 +248,6 @@ #define UI_HEIGHT 643 /* height of GUI window */ #define UI_LCD_POSX 31 /* x position of lcd */ #define UI_LCD_POSY 62 /* y position of lcd */ -#define UI_LCD_WIDTH 320 -#define UI_LCD_HEIGHT 240 -#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #elif defined(CREATIVE_ZV) #define UI_TITLE "Creative Zen Vision" @@ -416,12 +255,6 @@ #define UI_HEIGHT 643 /* height of GUI window */ #define UI_LCD_POSX 129 /* x position of lcd */ #define UI_LCD_POSY 85 /* y position of lcd */ -#define UI_LCD_WIDTH 640 -#define UI_LCD_HEIGHT 480 -#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #elif defined(MEIZU_M6SL) #define UI_TITLE "Meizu M6" @@ -429,22 +262,13 @@ #define UI_HEIGHT 322 /* height of GUI window */ #define UI_LCD_POSX 39 /* x position of lcd */ #define UI_LCD_POSY 38 /* y position of lcd */ -#define UI_LCD_WIDTH 320 -#define UI_LCD_HEIGHT 240 -#define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #elif defined(SANSA_FUZE) #define UI_TITLE "Sansa Fuze" #define UI_WIDTH 279 /* width of GUI window */ #define UI_HEIGHT 449 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 30 /* x position of lcd */ #define UI_LCD_POSY 31 /* y position of lcd */ -#define UI_LCD_WIDTH LCD_WIDTH -#define UI_LCD_HEIGHT LCD_HEIGHT #elif defined(SANSA_CLIP) #define UI_TITLE "Sansa Clip" @@ -452,42 +276,20 @@ #define UI_HEIGHT 325 /* height of GUI window */ #define UI_LCD_POSX 38 /* x position of lcd */ #define UI_LCD_POSY 38 /* y position of lcd */ -#define UI_LCD_WIDTH 128 -#define UI_LCD_HEIGHT 64 -#define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 0, 0, 0 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 13, 226, 229 /* foreground color of LCD (backlight) */ - -#define UI_LCD_SPLIT /* The screen is split in 2 areas */ -#define UI_LCD_SPLIT_LINES 16 /* the top 16 lines have a different color */ -#define UI_LCD_SPLIT_BLACK_LINES 2 /* The 2 areas are separated by 2 empty lines */ -/* Colors for the top part of the screen */ -#define UI_LCD_SPLIT_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_SPLIT_FGCOLORLIGHT 255, 230, 15 /* foreground color of LCD (backlight) */ #elif defined(PHILIPS_HDD1630) #define UI_TITLE "Philips GoGear HDD1630" #define UI_WIDTH 407 /* width of GUI window */ #define UI_HEIGHT 391 /* height of GUI window */ -/* high-colour */ #define UI_LCD_POSX 143 /* x position of lcd */ #define UI_LCD_POSY 27 /* y position of lcd */ -#define UI_LCD_WIDTH LCD_WIDTH -#define UI_LCD_HEIGHT LCD_HEIGHT #elif defined(SANSA_M200V4) #define UI_TITLE "sansa m200v4" #define UI_WIDTH 350 /* width of GUI window */ #define UI_HEIGHT 168 /* height of GUI window */ -#define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */ -#define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */ -#define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */ #define UI_LCD_POSX 42 /* x position of lcd */ #define UI_LCD_POSY 55 /* y position of lcd */ -#define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */ -#define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */ #else -- cgit v1.2.3