From c8950ceab353e15debb1d94958cd7efdf963d209 Mon Sep 17 00:00:00 2001 From: totaam Date: Sun, 30 Apr 2023 19:26:35 +0700 Subject: [PATCH] always use lossless encoding for 'text', even when scrolling --- xpra/server/window/window_video_source.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpra/server/window/window_video_source.py b/xpra/server/window/window_video_source.py index ed433bb695..ce241755fd 100644 --- a/xpra/server/window/window_video_source.py +++ b/xpra/server/window/window_video_source.py @@ -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