src/mame/video/snes.c
| r5501 | r5502 | |
| 167 | 167 | b = ((*colour & 0x7c00) >> 10) + ((scanlines[SUBSCREEN].buffer[offset] & 0x7c00) >> 10); |
| 168 | 168 | |
| 169 | 169 | /* don't halve for the back colour */ |
| 170 | | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset] != snes_cgram[FIXED_COLOUR]) ) |
| 170 | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset]) ) |
| 171 | 171 | { |
| 172 | 172 | r >>= 1; |
| 173 | 173 | g >>= 1; |
| r5501 | r5502 | |
| 181 | 181 | b = ((*colour & 0x7c00) >> 10) + ((snes_cgram[FIXED_COLOUR] & 0x7c00) >> 10); |
| 182 | 182 | |
| 183 | 183 | /* don't halve for the back colour */ |
| 184 | | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset] != snes_cgram[FIXED_COLOUR]) ) |
| 184 | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset]) ) |
| 185 | 185 | { |
| 186 | 186 | r >>= 1; |
| 187 | 187 | g >>= 1; |
| r5501 | r5502 | |
| 205 | 205 | if( b > 0x1f ) b = 0; |
| 206 | 206 | |
| 207 | 207 | /* don't halve for the back colour */ |
| 208 | | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset] != snes_cgram[FIXED_COLOUR]) ) |
| 208 | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset]) ) |
| 209 | 209 | { |
| 210 | 210 | r >>= 1; |
| 211 | 211 | g >>= 1; |
| r5501 | r5502 | |
| 222 | 222 | if( b > 0x1f ) b = 0; |
| 223 | 223 | |
| 224 | 224 | /* don't halve for the back colour */ |
| 225 | | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset] != snes_cgram[FIXED_COLOUR]) ) |
| 225 | if( (snes_ram[CGADSUB] & 0x40) && (scanlines[SUBSCREEN].zbuf[offset] || scanlines[SUBSCREEN].buffer[offset]) ) |
| 226 | 226 | { |
| 227 | 227 | r >>= 1; |
| 228 | 228 | g >>= 1; |