summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2013-03-16 14:47:01 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2013-03-16 14:47:01 +0000
commit5912bc6fa84542f3b367b674df9bc09eadda0982 (patch)
tree9368d37e132274035c299d8b268ba127b0c113ac /src
parent6598c85c0b1fb3e62baa13bd8e34167e36ebf143 (diff)
Fixed palette in HuC6280
Diffstat (limited to 'src')
-rw-r--r--src/emu/video/huc6260.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/video/huc6260.c b/src/emu/video/huc6260.c
index 800ee1f01c1..07dd1fad91c 100644
--- a/src/emu/video/huc6260.c
+++ b/src/emu/video/huc6260.c
@@ -30,9 +30,9 @@ PALETTE_INIT( huc6260 )
for ( i = 0; i < 512; i++ )
{
- int r = ( ( i >> 3 ) & 7 ) << 5;
- int g = ( ( i >> 6 ) & 7 ) << 5;
- int b = ( ( i ) & 7 ) << 5;
+ int r = pal3bit( ( i >> 3 ) & 7 );
+ int g = pal3bit( ( i >> 6 ) & 7 );
+ int b = pal3bit( ( i ) & 7 );
int y = ( ( 66 * r + 129 * g + 25 * b + 128 ) >> 8 ) + 16;
palette_set_color_rgb( machine, i, r, g, b );