Skip to content

Commit

Permalink
only round dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 13, 2023
1 parent 1658770 commit cb6ac21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/source/clientdisplay_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def dpi(size_pixels, size_mm):
log.warn(" using %ix%i mm", wmm, hmm)
screen = list(screen)
#make sure values are integers:
for j in range(4):
screen[j] = round(screen[j])
screen[1] = round(sw)
screen[2] = round(sh)
screen[3] = wmm
screen[4] = hmm
self.screen_sizes[i] = tuple(screen)
Expand Down

0 comments on commit cb6ac21

Please sign in to comment.