Skip to content

Commit

Permalink
simplify: no need for mask, the unused bits get squashed (ie: 0xfffff…
Browse files Browse the repository at this point in the history
…fff >> 30 = 3)

git-svn-id: https://xpra.org/svn/Xpra/trunk@26897 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 6, 2020
1 parent 29ca614 commit 7ec9d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/codecs/argb/argb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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&(<unsigned int>0xc0000000)) >> 30)*85
rgba[i+3] = (v>>30)*85
i = i + 4
r210 = <unsigned int*> ((<uintptr_t> r210) + src_stride)
return memoryview(output_buf)
Expand Down

0 comments on commit 7ec9d63

Please sign in to comment.