Skip to content

Commit

Permalink
#2500 when we use the command line dpi value for both xdpi and ydpi, …
Browse files Browse the repository at this point in the history
…we have to use the average scaling of x and y instead of applying the scaling twice

git-svn-id: https://xpra.org/svn/Xpra/trunk@24545 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 1, 2019
1 parent 374d0ba commit 5e3b7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/mixins/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_dpi_caps(self):
dpi = 0
if self.dpi>0:
#scale it:
dpi = self.cx(self.cy(self.dpi))
dpi = self.cx(self.cy(self.dpi*2))
else:
#not supplied, use platform detection code:
#platforms may also provide per-axis dpi (later win32 versions do)
Expand Down

0 comments on commit 5e3b7d1

Please sign in to comment.