fix the garbage columns when the aspect ratio correction is turned off (#1695)

This commit is contained in:
Roman Fomin 2024-05-21 09:08:06 +07:00 committed by GitHub
parent ebf69cd6a8
commit 18693bc95b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 7 deletions

View File

@ -713,9 +713,7 @@ void F_BunnyScroll (void)
if (SHORT(p2->width) == SCREENWIDTH)
{
V_FillRect(0, 0, video.deltaw, SCREENHEIGHT, v_darkest_color);
V_FillRect(video.unscaledw - video.deltaw, 0,
video.deltaw, SCREENHEIGHT, v_darkest_color);
V_FillRect(0, 0, video.unscaledw, SCREENHEIGHT, v_darkest_color);
}
if (finalecount < 1130)

View File

@ -417,7 +417,7 @@ void ST_refreshBackground(void)
for (x = 0; x < video.deltaw; x += 8)
{
V_DrawPatch(x - video.deltaw, 0, patch);
V_DrawPatch(SCREENWIDTH + video.deltaw - x - 8, 0, patch);
V_DrawPatch(video.unscaledw - video.deltaw - x - 8, 0, patch);
}
}
}

View File

@ -660,9 +660,7 @@ void V_DrawPatchFullScreen(patch_t *patch)
// [crispy] fill pillarboxes in widescreen mode
if (video.unscaledw != NONWIDEWIDTH)
{
V_FillRect(0, 0, video.deltaw, SCREENHEIGHT, v_darkest_color);
V_FillRect(video.unscaledw - video.deltaw, 0, video.deltaw,
SCREENHEIGHT, v_darkest_color);
V_FillRect(0, 0, video.unscaledw, SCREENHEIGHT, v_darkest_color);
}
drawcolfunc = V_DrawPatchColumn;