コード例 #1
0
ファイル: display.py プロジェクト: frostbane/xpra
 def parse_scaling(self, desktop_scaling):
     root_w, root_h = self.get_root_size()
     from xpra.client.scaling_parser import parse_scaling
     self.initial_scaling = parse_scaling(desktop_scaling, root_w, root_h,
                                          MIN_SCALING, MAX_SCALING)
     self.xscale, self.yscale = self.initial_scaling
     scalinglog("scaling(%s)=%s", self.initial_scaling,
                (self.xscale, self.yscale))
コード例 #2
0
ファイル: display.py プロジェクト: rudresh2319/Xpra
 def init(self, opts, _extra_args=[]):
     self.desktop_fullscreen = opts.desktop_fullscreen
     self.desktop_scaling = opts.desktop_scaling
     self.dpi = int(opts.dpi)
     self.can_scale = opts.desktop_scaling not in FALSE_OPTIONS
     if self.can_scale:
         root_w, root_h = self.get_root_size()
         from xpra.client.scaling_parser import parse_scaling
         self.initial_scaling = parse_scaling(opts.desktop_scaling, root_w,
                                              root_h, MIN_SCALING,
                                              MAX_SCALING)
         self.xscale, self.yscale = self.initial_scaling