From 9ec9c639ddb475aae1a06c7cfe9cb1726db68908 Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 28 May 2019 15:08:33 -0700 Subject: [PATCH] Revert "Revert "Fix Post Processing in 64-bit Software 3P/4P"" This reverts commit 392f357b1af90dc4caa7e770ea87aedba78fb2de. --- 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 1f8bb6777..9233eda42 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 {