The EGA and (S)VGA renders no longer draw a line's left and right overscan borders if the line is < 0.

This commit is contained in:
OBattler
2020-06-07 21:32:10 +02:00
parent 416d4f673d
commit de1cae40f7
2 changed files with 12 additions and 0 deletions

View File

@@ -76,6 +76,9 @@ ega_render_overscan_left(ega_t *ega)
{
int i;
if ((ega->displine + ega->y_add) < 0)
return;
if (ega->scrblank || (ega->hdisp == 0))
return;
@@ -89,6 +92,9 @@ ega_render_overscan_right(ega_t *ega)
{
int i, right;
if ((ega->displine + ega->y_add) < 0)
return;
if (ega->scrblank || (ega->hdisp == 0))
return;

View File

@@ -69,6 +69,9 @@ svga_render_overscan_left(svga_t *svga)
{
int i;
if ((svga->displine + svga->y_add) < 0)
return;
if (svga->scrblank || (svga->hdisp == 0))
return;
@@ -82,6 +85,9 @@ svga_render_overscan_right(svga_t *svga)
{
int i, right;
if ((svga->displine + svga->y_add) < 0)
return;
if (svga->scrblank || (svga->hdisp == 0))
return;