Skip to content

Commit

Permalink
always use lossless encoding for 'text', even when scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 3, 2023
1 parent 47f70ee commit c8950ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpra/server/window/window_video_source.py
Expand Up @@ -2017,9 +2017,12 @@ def encode_scrolling(self, scroll_data, image, options, match_pct, max_zones=20)
del scrolls
#send the rest as rectangles:
if non_scroll:
if self.content_type.find("text")>=0:
quality = 100
options["quality"] = quality
#boost quality a bit, because lossless saves refreshing,
#more so if we have a high match percentage (less to send):
if self._fixed_quality<=0:
elif self._fixed_quality<=0:
quality = options.get("quality", self._current_quality)
quality = min(100, quality + max(60, match_pct)//2)
options["quality"] = quality
Expand Down

0 comments on commit c8950ce

Please sign in to comment.