summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author MooglyGuy <therealmogminer@gmail.com>2019-05-25 18:01:19 +0200
committer MooglyGuy <therealmogminer@gmail.com>2019-05-25 18:01:31 +0200
commit2b091f8c650f892469847a08a1cae4d9aca47448 (patch)
treef57d4e8ece90ae9e0253371386dcaad5e94e5155
parentbfa4627243ccaa54ce9dec8e40e10654357995fb (diff)
-newport: Fixed 4bpp color mode, nw
-rw-r--r--src/devices/bus/gio/newport.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devices/bus/gio/newport.cpp b/src/devices/bus/gio/newport.cpp
index 48ed5f3a2fe..71dff08d10c 100644
--- a/src/devices/bus/gio/newport.cpp
+++ b/src/devices/bus/gio/newport.cpp
@@ -518,9 +518,9 @@ uint32_t newport_base_device::screen_update(screen_device &device, bitmap_rgb32
{
const uint8_t shift = BIT(table_entry, 0) ? 4 : 0;
const uint8_t pix_in = (uint8_t)(*src_ci >> shift);
- const uint8_t r = 0xff * BIT(pix_in, 3);
+ const uint8_t r = 0xff * BIT(pix_in, 0);
const uint8_t g = (0xaa * BIT(pix_in, 2)) | (0x55 * BIT(pix_in, 1));
- const uint8_t b = 0xff * BIT(pix_in, 0);
+ const uint8_t b = 0xff * BIT(pix_in, 3);
*dest++ = (r << 16) | (g << 8) | b;
break;
}
@@ -2673,14 +2673,12 @@ void newport_base_device::do_rex3_command()
{
case 0: // 4bpp
color = m_rex3.m_color_vram & 0xf;
- color |= color << 4;
break;
case 1: // 8bpp
color = m_rex3.m_color_vram & 0xff;
break;
case 2: // 12bpp
color = ((m_rex3.m_color_vram & 0xf00000) >> 12) | ((m_rex3.m_color_vram & 0xf000) >> 8) | ((m_rex3.m_color_vram & 0xf0) >> 4);
- color |= color << 12;
break;
case 3: // 24bpp
color = m_rex3.m_color_vram & 0xffffff;