Skip to content

Commit

Permalink
don't show any warnings parsing 'desktop-scaling=no'
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 26, 2024
1 parent e0a873c commit fb2f05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/scaling_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import os
from xpra.util import envfloat
from xpra.log import Logger
from xpra.scripts.config import TRUE_OPTIONS
from xpra.scripts.config import TRUE_OPTIONS, FALSE_OPTIONS
from typing import List, Tuple

log = Logger("scaling")
Expand All @@ -30,7 +30,7 @@ def scaledown_value(scaling):

def parse_scaling(desktop_scaling, root_w, root_h, min_scaling=MIN_SCALING, max_scaling=MAX_SCALING) -> Tuple[float,float]:
log("parse_scaling(%s)", (desktop_scaling, root_w, root_h, min_scaling, max_scaling))
if desktop_scaling in TRUE_OPTIONS:
if desktop_scaling in TRUE_OPTIONS or desktop_scaling in FALSE_OPTIONS:
return 1, 1
if desktop_scaling.startswith("auto"):
#figure out if the command line includes settings to use for auto mode:
Expand Down

0 comments on commit fb2f05c

Please sign in to comment.