Skip to content

Commit

Permalink
force text quality to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 23, 2024
1 parent 3fd4b20 commit 0bc563c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

INITIAL_QUALITY : int = envint("XPRA_INITIAL_QUALITY", 65)
INITIAL_SPEED : int = envint("XPRA_INITIAL_SPEED", 40)
TEXT_QUALITY = envint("XPRA_TEXT_QUALITY", 100)

LOCKED_BATCH_DELAY : int = envint("XPRA_LOCKED_BATCH_DELAY", 1000)

Expand Down Expand Up @@ -2009,6 +2010,8 @@ def assign_sq_options(self, options, speed_pct : int=100, quality_pct : int=100)
if self._fixed_quality>0:
quality = self._fixed_quality
else:
text_hint = self.content_type.find("text") >= 0
quality = TEXT_QUALITY if text_hint else self._current_quality
quality = self._current_quality

This comment has been minimized.

Copy link
@Rush-iam

Rush-iam Feb 6, 2024

I think you need to delete this line to make the changes work

This comment has been minimized.

Copy link
@totaam

totaam Feb 6, 2024

Author Collaborator

Oh, damn.

This comment has been minimized.

Copy link
@totaam

totaam Feb 6, 2024

Author Collaborator

It's correct in git master, the backport is wrong.

This comment has been minimized.

Copy link
@totaam

totaam Feb 6, 2024

Author Collaborator

quality = TEXT_QUALITY if text_hint else self._current_quality

This comment has been minimized.

Copy link
@totaam

totaam Feb 6, 2024

Author Collaborator

Done: 1aaf6ca

if packets_backlog is None:
packets_backlog = self.get_packets_backlog()
Expand Down

0 comments on commit 0bc563c

Please sign in to comment.