From 7ec9d6308cec6db13c92b06287aa9ab4ace894df Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 6 Jul 2020 12:14:09 +0000 Subject: [PATCH] simplify: no need for mask, the unused bits get squashed (ie: 0xffffffff >> 30 = 3) git-svn-id: https://xpra.org/svn/Xpra/trunk@26897 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/codecs/argb/argb.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xpra/codecs/argb/argb.pyx b/src/xpra/codecs/argb/argb.pyx index 1a2ac94732..d0e64dbd61 100644 --- a/src/xpra/codecs/argb/argb.pyx +++ b/src/xpra/codecs/argb/argb.pyx @@ -112,7 +112,7 @@ cdef r210data_to_rgba(unsigned int* r210, rgba[i+2] = (v&0x000003ff) >> 2 rgba[i+1] = (v&0x000ffc00) >> 12 rgba[i] = (v&0x3ff00000) >> 22 - rgba[i+3] = ((v&(0xc0000000)) >> 30)*85 + rgba[i+3] = (v>>30)*85 i = i + 4 r210 = (( r210) + src_stride) return memoryview(output_buf)