diff options
author | 2017-06-28 10:15:50 -0400 | |
---|---|---|
committer | 2017-06-28 10:15:50 -0400 | |
commit | 1958ac5e6f401e18cde721aad2b3ac711236f2e0 (patch) | |
tree | a43a7f36973fa788e710c22dc6ac7a4a8adbbdef /src/emu/emupal.cpp | |
parent | b9c5ac28f7d650f1e961ed593816829601c9e1e1 (diff) |
Revert custom DECO conversion in emu dir
Diffstat (limited to 'src/emu/emupal.cpp')
-rw-r--r-- | src/emu/emupal.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/emu/emupal.cpp b/src/emu/emupal.cpp index 27bfc65927d..4062b0f74f7 100644 --- a/src/emu/emupal.cpp +++ b/src/emu/emupal.cpp @@ -507,22 +507,3 @@ rgb_t raw_to_rgb_converter::xRGBRRRRGGGGBBBB_bit4_decoder(u32 raw) u8 const b = pal5bit(((raw >> 0) & 0x0f) | ((raw >> 8) & 0x10)); return rgb_t(r, g, b); } - -// This conversion mimics the specific weighting used by the Data East -// custom resistor pack marked DECO RM-C3 to convert the digital -// palette for analog output. It is used on games such as The Real -// Ghostbusters, Gondomania, Cobra Command, Psychonics Oscar. -// -// Resistor values are 220 ohms (MSB), 470 ohms, 1 kohm, 2.2 kohm (LSB) -rgb_t raw_to_rgb_converter::deco_rgb_decoder(u32 raw) -{ - u8 r = raw&0xf; - u8 g = (raw>>4)&0xf; - u8 b = (raw>>8)&0xf; - - r = 0x0e * (r&1) + 0x1f * ((r&2)>>1) + 0x43 * ((r&4)>>2) + 0x8f * ((r&8)>>3); - g = 0x0e * (g&1) + 0x1f * ((g&2)>>1) + 0x43 * ((g&4)>>2) + 0x8f * ((g&8)>>3); - b = 0x0e * (b&1) + 0x1f * ((b&2)>>1) + 0x43 * ((b&4)>>2) + 0x8f * ((b&8)>>3); - - return rgb_t(r, g, b); -} |