Skip to content

Commit

Permalink
#3337 allow compress_level=0 for speed>=75
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 21, 2021
1 parent 0938857 commit 803ca5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/pillow/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def mask_value(a):
#76-100 -> 1
#51-76 -> 2
#etc
level = max(1, min(5, (125-speed)//25))
level = max(0, min(5, (100-speed)//25))
kwargs["compress_level"] = level
#no need to expose to the client:
#client_options["compress_level"] = level
Expand Down

0 comments on commit 803ca5a

Please sign in to comment.