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 1714218 commit eb385f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/pillow/encoder.py
Expand Up @@ -207,7 +207,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 eb385f7

Please sign in to comment.