From 99b5d2298b2f93415a3432d4113432c8f3645d65 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 8 Oct 2024 09:37:55 +0200 Subject: [PATCH] [primitives,sse] fix a bug in sse4.1 primitives copy --- libfreerdp/primitives/sse/prim_copy_sse4_1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreerdp/primitives/sse/prim_copy_sse4_1.c b/libfreerdp/primitives/sse/prim_copy_sse4_1.c index e1ef89fe2..a2cca8487 100644 --- a/libfreerdp/primitives/sse/prim_copy_sse4_1.c +++ b/libfreerdp/primitives/sse/prim_copy_sse4_1.c @@ -201,13 +201,13 @@ pstatus_t sse_image_copy_no_overlap_convert( WINPR_PRAGMA_UNROLL_LOOP for (; x < width; x++) { - const UINT32 color = FreeRDPReadColor(&srcLine[(x + nXSrc) * srcByte], SrcFormat); + const UINT32 color = FreeRDPReadColor_int(&srcLine[(x + nXSrc) * srcByte], SrcFormat); const UINT32 dstColor = FreeRDPConvertColor(color, SrcFormat, DstFormat, palette); FreeRDPWriteColor_int(&dstLine[(x + nXDst) * dstByte], DstFormat, dstColor); } for (; x < nWidth; x++) { - const UINT32 color = FreeRDPReadColor(&srcLine[(x + nXSrc) * srcByte], SrcFormat); + const UINT32 color = FreeRDPReadColor_int(&srcLine[(x + nXSrc) * srcByte], SrcFormat); const UINT32 dstColor = FreeRDPConvertColor(color, SrcFormat, DstFormat, palette); FreeRDPWriteColor_int(&dstLine[(x + nXDst) * dstByte], DstFormat, dstColor); }