Merge pull request #5955 from DavidHaywood/241119_2

vt1682 - (plug & play) tweak fallthrough bg colour, improves fade to white cases (nw)
This commit is contained in:
R. Belmont 2019-11-23 21:17:04 -05:00 committed by GitHub
commit 453f7b488f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];
}
}
}
}