From a08c097a20041f986104d3f9a1f961317ba8535e Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Fri, 26 Sep 2025 23:59:53 +0200 Subject: [PATCH] Fix VID_BlitLinearScreen's SSE version ignoring width (closes #128) --- 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 cfd17945e..829ffc3ef 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -498,7 +498,7 @@ static void CV_constextsize_OnChange(void) void VID_BlitLinearScreen(const UINT8 *srcptr, UINT8 *destptr, INT32 width, INT32 height, size_t srcrowbytes, size_t destrowbytes) { - if (srcrowbytes == destrowbytes) + if (srcrowbytes == destrowbytes && srcrowbytes == width) { size_t i = srcrowbytes * height; #if defined(__SSE__)