Skip to content

Commit

Permalink
Don't crop virtual screen, gets annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 9, 2024
1 parent 1809db3 commit 3955049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/vs/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def windowChanged(self):
m = (BORDER_SPACE + BORDER_THICKNESS) * 2
dstWidth, dstHeight = c_w.value, c_h.value
sw, sh = (dstWidth - m) / self.width, (dstHeight - m) / self.height
scale = max(sw, sh)
scale = min(sw, sh)

if scale < 1:
w, h = min(self.width, dstWidth), min(self.height, dstHeight)
Expand Down

0 comments on commit 3955049

Please sign in to comment.