Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 6, 2024
1 parent c8ec946 commit 6f11298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/codecs/pillow/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ def encode(coding: str, image, options: typedict) -> tuple[str, Compressed, dict
w: int = image.get_width()
h: int = image.get_height()
bpp = 32
rowstride = image.get_rowstride()
in_stride = image.get_rowstride()
rowstride = in_stride
pixels = image.get_pixels()
if not pixels:
raise RuntimeError(f"failed to get pixels from {image}")
# remove transparency if it cannot be handled,
# and deal with non-24-bit formats:
if pixel_format == "r210":
in_stride = rowstride
from xpra.codecs.argb.argb import r210_to_rgba, r210_to_rgb # pylint: disable=import-outside-toplevel
has_alpha = options.intget("depth", 24) == 32
if has_alpha and supports_transparency:
Expand Down

0 comments on commit 6f11298

Please sign in to comment.