mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
Fix astinvad0106u11gre
This commit is contained in:
parent
864e14b28d
commit
1d181fd887
1 changed files with 1 additions and 8 deletions
|
@ -129,20 +129,13 @@ static VIDEO_UPDATE( astinvad )
|
|||
UINT8 yoffs = flip_yoffs & screen_flip;
|
||||
int x, y;
|
||||
|
||||
/* red screen: just fill with red and exit */
|
||||
if (screen_red)
|
||||
{
|
||||
fillbitmap(bitmap, MAKE_RGB(0xff,0x00,0x00), cliprect);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* render the visible pixels */
|
||||
for (y = cliprect->min_y; y <= cliprect->max_y; y++)
|
||||
for (x = cliprect->min_x & ~7; x <= cliprect->max_x; x += 8)
|
||||
{
|
||||
UINT8 color = color_prom[((y & 0xf8) << 2) | (x >> 3)] >> (screen_flip ? 0 : 4);
|
||||
UINT8 data = videoram[(((y ^ screen_flip) + yoffs) << 5) | ((x ^ screen_flip) >> 3)];
|
||||
plot_byte(bitmap, y, x, data, color);
|
||||
plot_byte(bitmap, y, x, data, screen_red ? 1 : color);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue