summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2019-11-23 21:17:04 -0500
committer GitHub <noreply@github.com>2019-11-23 21:17:04 -0500
commit453f7b488f417b76dec2fa3f7f3ffb4e7b9ab07b (patch)
treed5c3e3ed3b5394700ed3636231f1f05d07e3b45c
parent3e651eab996ba6e3725f505e69fc7dab84a0dbe1 (diff)
parentff16354c58c2f62a341b70a81fe9a8d584ca6090 (diff)
Merge pull request #5955 from DavidHaywood/241119_2
vt1682 - (plug & play) tweak fallthrough bg colour, improves fade to white cases (nw)
-rw-r--r--src/mame/drivers/vt1682.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mame/drivers/vt1682.cpp b/src/mame/drivers/vt1682.cpp
index eda21547d33..60ea82c6b23 100644
--- a/src/mame/drivers/vt1682.cpp
+++ b/src/mame/drivers/vt1682.cpp
@@ -4916,12 +4916,20 @@ uint32_t vt_vt1682_state::screen_update(screen_device& screen, bitmap_rgb32& bit
if (pri1 <= pri2)
{
if (pix1) dstptr[x] = paldata[pix1 | 0x100];
- else if (pix2) dstptr[x] = paldata[pix2];
+ else
+ {
+ if (pix2) dstptr[x] = paldata[pix2];
+ else dstptr[x] = paldata[0x000];
+ }
}
else
{
if (pix2) dstptr[x] = paldata[pix2];
- else if (pix1) dstptr[x] = paldata[pix1 | 0x100];
+ else
+ {
+ if (pix1) dstptr[x] = paldata[pix1 | 0x100];
+ else dstptr[x] = paldata[0x100];
+ }
}
}
}