improve DRS image stability

Previously the width was made even to fix the garbage column at the side of the
screen. This is now no longer necessary.
This commit is contained in:
Roman Fomin 2023-12-24 21:01:21 +07:00
parent b12994bccc
commit 38c2afde62

View File

@ -1035,7 +1035,6 @@ static void ResetResolution(int height)
double vertscale = (double)actualheight / (double)unscaled_actualheight; double vertscale = (double)actualheight / (double)unscaled_actualheight;
video.width = (int)(video.unscaledw * vertscale); video.width = (int)(video.unscaledw * vertscale);
video.width = (video.width + 1) & ~1;
video.deltaw = (video.unscaledw - NONWIDEWIDTH) / 2; video.deltaw = (video.unscaledw - NONWIDEWIDTH) / 2;