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 4a2cceb commit 777be6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xpra/server/window/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

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

LOCKED_BATCH_DELAY = envint("XPRA_LOCKED_BATCH_DELAY", 1000)

Expand Down Expand Up @@ -2016,7 +2017,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:
quality = self._current_quality
text_hint = self.content_type.find("text") >= 0
quality = TEXT_QUALITY if text_hint else self._current_quality
if packets_backlog is None:
packets_backlog = self.get_packets_backlog()
now = monotonic()
Expand Down

0 comments on commit 777be6c

Please sign in to comment.