mirror of
https://github.com/holub/mame
synced 2025-05-03 21:13:18 +03:00
apple2gs: Fix the behavior for fill mode when no previous color is set [R. Belmont]
This commit is contained in:
parent
c33ab8cd28
commit
5656c0ea8a
@ -1372,6 +1372,15 @@ uint32_t a2_video_device::screen_update_GS(screen_device &screen, bitmap_rgb32 &
|
||||
}
|
||||
else // 320 mode
|
||||
{
|
||||
// the low 5 bits of the SCB determine the initial fillmode color
|
||||
// for the scanline (hardware testing by John Brooks)
|
||||
static const uint32_t fillmode_init[32] =
|
||||
{
|
||||
2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf,
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf,
|
||||
};
|
||||
|
||||
last_pixel = fillmode_init[scb & 0x1f];
|
||||
for (col = 0; col < 160; col++)
|
||||
{
|
||||
b = vram[col];
|
||||
|
Loading…
Reference in New Issue
Block a user