Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #59 from Ontwikseltsaar/fix-screenshot-resolution
Browse files Browse the repository at this point in the history
Fix screenshot resolution if user selected a window with values identical to current spin box values.
  • Loading branch information
Toufool authored Nov 10, 2021
2 parents 7fb8f29 + 9b56dee commit 127d8c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/screen_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ def selectWindow(self):
rect = win32gui.GetClientRect(self.hwnd)
self.rect.left = 8
self.rect.top = 31
self.rect.right = 0 + rect[2]
self.rect.bottom = 0 + rect[3]
self.rect.right = 8 + rect[2]
self.rect.bottom = 31 + rect[3]

self.widthSpinBox.setValue(self.rect.right)
self.heightSpinBox.setValue(self.rect.bottom)
self.widthSpinBox.setValue(rect[2])
self.heightSpinBox.setValue(rect[3])
self.xSpinBox.setValue(self.rect.left)
self.ySpinBox.setValue(self.rect.top)

Expand Down

0 comments on commit 127d8c7

Please sign in to comment.