mirror of
https://github.com/holub/mame
synced 2025-05-24 06:30:04 +03:00
...fixed for good
This commit is contained in:
parent
339da06f52
commit
77e01f0037
@ -90,14 +90,20 @@ VIDEO_UPDATE( archimds_vidc )
|
|||||||
|
|
||||||
if(vidc_interlace)
|
if(vidc_interlace)
|
||||||
{
|
{
|
||||||
if ((res_x) <= screen->visible_area().max_x && (res_y) <= screen->visible_area().max_y && (res_x) <= xend && (res_y) <= yend)
|
if ((res_x) >= 0 &&
|
||||||
|
(res_y) >= 0 &&
|
||||||
|
(res_x) <= screen->visible_area().max_x && (res_y) <= screen->visible_area().max_y && (res_x) <= xend && (res_y) <= yend)
|
||||||
*BITMAP_ADDR32(bitmap, res_y, res_x) = screen->machine->pens[(pen&0xff)+0x100];
|
*BITMAP_ADDR32(bitmap, res_y, res_x) = screen->machine->pens[(pen&0xff)+0x100];
|
||||||
if ((res_x) <= screen->visible_area().max_x && (res_y+1) <= screen->visible_area().max_y && (res_x) <= xend && (res_y+1) <= yend)
|
if ((res_x) >= 0 &&
|
||||||
|
(res_y) >= 0 &&
|
||||||
|
(res_x) <= screen->visible_area().max_x && (res_y+1) <= screen->visible_area().max_y && (res_x) <= xend && (res_y+1) <= yend)
|
||||||
*BITMAP_ADDR32(bitmap, res_y+1, res_x) = screen->machine->pens[(pen&0xff)+0x100];
|
*BITMAP_ADDR32(bitmap, res_y+1, res_x) = screen->machine->pens[(pen&0xff)+0x100];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((res_x) <= screen->visible_area().max_x && (res_y) <= screen->visible_area().max_y && (res_x) <= xend && (res_y) <= yend)
|
if ((res_x) >= 0 &&
|
||||||
|
(res_y) >= 0 &&
|
||||||
|
(res_x) <= screen->visible_area().max_x && (res_y) <= screen->visible_area().max_y && (res_x) <= xend && (res_y) <= yend)
|
||||||
*BITMAP_ADDR32(bitmap, res_y, res_x) = screen->machine->pens[(pen&0xff)+0x100];
|
*BITMAP_ADDR32(bitmap, res_y, res_x) = screen->machine->pens[(pen&0xff)+0x100];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user