Skip to content

Commit

Permalink
prefer BGRA to RGBA
Browse files Browse the repository at this point in the history
as BGRA can be handled by both the cairo backend and the opengl backend,
using RGBA via a Pixbuf pre-multiplies the transparency again when it should not
  • Loading branch information
totaam committed Nov 27, 2022
1 parent 0c44f0a commit cf3058c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/client/window_backing_base.py
Expand Up @@ -487,7 +487,7 @@ def do_paint_jpeg(self, encoding, img_data, x, y, width, height, options, callba
if encoding=="jpeg":
rgb_format = "RGBX"
elif encoding=="jpega":
rgb_format = "RGBA"
rgb_format = "BGRA"
else:
raise Exception("invalid encoding %r" % encoding)
img = self.jpeg_decoder.decompress_to_rgb(rgb_format, img_data, alpha_offset)
Expand Down

0 comments on commit cf3058c

Please sign in to comment.