diff options
| author | 2008-10-09 06:35:00 +0000 | |
|---|---|---|
| committer | 2008-10-09 06:35:00 +0000 | |
| commit | 7b84b06986422b03574d825110188b4bd378585f (patch) | |
| tree | f09881d429c4de1d9068eca820ea49553bacb3f1 /src | |
| parent | 2d6453c98af8d4cae65a906c74e4e083fb48643b (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.c | 4 |
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; |
