mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
Tweak ZXBox colours: 1) 'Bright' black is the same as normal black on a real Spectrum, so make it so here too. 2) Use more accurate RGB values in the 16bpp driver (taken from the FUSE emulator). 3) Remove some confusing duplicate definitions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17638 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ae4b677736
commit
b57b779fbc
4 changed files with 11 additions and 69 deletions
|
|
@ -33,7 +33,7 @@ void init_spect_scr(void)
|
|||
sp_colors[7] = 3;/* WHITE ? */
|
||||
|
||||
/* same but 'light/bright' colors */
|
||||
sp_colors[8] = 1;
|
||||
sp_colors[8] = 0;
|
||||
sp_colors[9] = 1;
|
||||
sp_colors[10] = 1;
|
||||
sp_colors[11] = 1;
|
||||
|
|
@ -79,13 +79,13 @@ void update_screen(void)
|
|||
srcy &= 0xffff; /* set up the y-coordinate between 0 and 1 */
|
||||
}
|
||||
#elif LCD_PIXELFORMAT == VERTICAL_PACKING
|
||||
int shift;
|
||||
int shift;
|
||||
for(y = 0; y < LCD_HEIGHT; y++)
|
||||
{
|
||||
frameb = rb->lcd_framebuffer + (y/4) * LCD_WIDTH;
|
||||
srcx = 0; /* reset our x counter before each row... */
|
||||
shift = ((y & 3 ) * 2 );
|
||||
mask = ~pixmask[y & 3];
|
||||
shift = ((y & 3 ) * 2 );
|
||||
mask = ~pixmask[y & 3];
|
||||
for(x = 0; x < LCD_WIDTH; x++)
|
||||
{
|
||||
frameb[x] = (frameb[x] & mask) | ((image[(srcx>>16)]&0x3) << shift );
|
||||
|
|
@ -96,13 +96,13 @@ void update_screen(void)
|
|||
srcy &= 0xffff; /* set up the y-coordinate between 0 and 1 */
|
||||
}
|
||||
#elif LCD_PIXELFORMAT == VERTICAL_INTERLEAVED
|
||||
int shift;
|
||||
int shift;
|
||||
for(y = 0; y < LCD_HEIGHT; y++)
|
||||
{
|
||||
frameb = rb->lcd_framebuffer + (y/8) * LCD_WIDTH;
|
||||
srcx = 0; /* reset our x counter before each row... */
|
||||
shift = (y & 7);
|
||||
mask = ~pixmask[y & 7];
|
||||
shift = (y & 7);
|
||||
mask = ~pixmask[y & 7];
|
||||
for(x = 0; x < LCD_WIDTH; x++)
|
||||
{
|
||||
frameb[x] = (frameb[x] & mask) | (pixval[image[(srcx>>16)]&0x3] << shift );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue