Skip to content

Commit

Permalink
constify initial speed and quality
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@19222 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 6, 2018
1 parent a47a6e1 commit ab6cbba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
AUTO_REFRESH_QUALITY = envint("XPRA_AUTO_REFRESH_QUALITY", 100)
AUTO_REFRESH_SPEED = envint("XPRA_AUTO_REFRESH_SPEED", 50)

INITIAL_QUALITY = envint("XPRA_INITIAL_QUALITY", 40)
INITIAL_SPEED = envint("XPRA_INITIAL_SPEED", 40)

LOCKED_BATCH_DELAY = envint("XPRA_LOCKED_BATCH_DELAY", 1000)

MAX_PIXELS_PREFER_RGB = envint("XPRA_MAX_PIXELS_PREFER_RGB", 4096)
Expand Down Expand Up @@ -223,8 +226,8 @@ def __init__(self,
self._fixed_min_speed = default_encoding_options.get("min-speed", 0)
#will be overriden by update_quality() and update_speed() called from update_encoding_selection()
#just here for clarity:
self._current_quality = self._fixed_quality or 40
self._current_speed = self._fixed_speed or 40
self._current_quality = self._fixed_quality or INITIAL_QUALITY
self._current_speed = self._fixed_speed or INITIAL_SPEED
self._want_alpha = False
self._lossless_threshold_base = 85
self._lossless_threshold_pixel_boost = 20
Expand Down

0 comments on commit ab6cbba

Please sign in to comment.