summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-10-09 06:35:00 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-10-09 06:35:00 +0000
commit7b84b06986422b03574d825110188b4bd378585f (patch)
treef09881d429c4de1d9068eca820ea49553bacb3f1 /src
parent2d6453c98af8d4cae65a906c74e4e083fb48643b (diff)
Fix regression due to non-zero alpha values being present in the bitmap.
Diffstat (limited to 'src')
-rw-r--r--src/mame/video/namcos22.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/video/namcos22.c b/src/mame/video/namcos22.c
index 122a32fd0f1..e0cf1734e19 100644
--- a/src/mame/video/namcos22.c
+++ b/src/mame/video/namcos22.c
@@ -627,7 +627,7 @@ ApplyGamma( bitmap_t *bitmap )
for( x=0; x<bitmap->width; x++ )
{
int rgb = dest[x];
- int r = rlut[XORPAT^(rgb>>16)];
+ int r = rlut[XORPAT^((rgb>>16)&0xff)];
int g = glut[XORPAT^((rgb>>8)&0xff)];
int b = blut[XORPAT^(rgb&0xff)];
dest[x] = (r<<16)|(g<<8)|b;
@@ -645,7 +645,7 @@ ApplyGamma( bitmap_t *bitmap )
for( x=0; x<bitmap->width; x++ )
{
int rgb = dest[x];
- int r = rlut[rgb>>16];
+ int r = rlut[(rgb>>16)&0xff];
int g = glut[(rgb>>8)&0xff];
int b = blut[rgb&0xff];
dest[x] = (r<<16)|(g<<8)|b;