From a2a63c5e7f03a16b84a2a705b026d996c0bae38b Mon Sep 17 00:00:00 2001 From: Sryder <sryder13@gmail.com> Date: Mon, 27 May 2019 22:03:17 +0100 Subject: [PATCH] Fix Post Processing in 64-bit Software 3P/4P Vid_BlitLinearScreen didn't make sure that it was actually meant to be copying the entire screen rows before doing it properly. --- src/v_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v_video.c b/src/v_video.c index 3dfea0418..a624878c6 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -292,7 +292,7 @@ void VID_BlitLinearScreen(const UINT8 *srcptr, UINT8 *destptr, INT32 width, INT3 #ifdef HAVE_VIDCOPY VID_BlitLinearScreen_ASM(srcptr,destptr,width,height,srcrowbytes,destrowbytes); #else - if (srcrowbytes == destrowbytes) + if ((srcrowbytes == destrowbytes) && (srcrowbytes == (size_t)width)) M_Memcpy(destptr, srcptr, srcrowbytes * height); else { -- GitLab