summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2020-03-26 14:34:35 -0400
committer GitHub <noreply@github.com>2020-03-26 14:34:35 -0400
commit5ba56a827b1c856a7ca2dd04256b8adc4fed1c67 (patch)
treebbc95835cdddd31ebd3b4a5489ccd32c49ae93c5 /src/mame
parentb11f032011d0720199de7fbde712893f1e8bb680 (diff)
parent12a193d2b20d25f23b4dbda72e43f69918f9fdc8 (diff)
Merge pull request #6489 from cam900/patch-140
namco_c355spr.cpp : Fix drawing regression
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/video/namco_c355spr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/video/namco_c355spr.cpp b/src/mame/video/namco_c355spr.cpp
index 9655929cc82..cd06bfe1664 100644
--- a/src/mame/video/namco_c355spr.cpp
+++ b/src/mame/video/namco_c355spr.cpp
@@ -161,7 +161,7 @@ void namco_c355spr_device::copybitmap(bitmap_ind16 &dest_bmp, const rectangle &c
dest[x] = 0x6000|(dest[x] & 0x1fff);
break;
default:
- dest[x] = c;
+ dest[x] = gfx(0)->colorbase() + c;
break;
}
}
@@ -193,7 +193,7 @@ void namco_c355spr_device::copybitmap(bitmap_ind16 &dest_bmp, const rectangle &c
}
else
{
- dest[x] = c;
+ dest[x] = gfx(0)->colorbase() + c;
}
}
}
@@ -208,7 +208,7 @@ void namco_c355spr_device::copybitmap(bitmap_rgb32 &dest_bmp, const rectangle &c
device_palette_interface &palette = gfx(0)->palette();
const int shadow_offset = (palette.shadows_enabled()) ? palette.entries() : 0;
const pen_t black = palette.black_pen();
- const pen_t *pal = palette.pens();
+ const pen_t *pal = &palette.pen(gfx(0)->colorbase());
if (m_palxor)
{
for (int y = clip.min_y; y <= clip.max_y; y++)