Skip to content

Commit

Permalink
Merge pull request #250 from Toufool/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
Avasam authored Jul 24, 2023
2 parents 2287470 + 66aadf0 commit 2f95aad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ repos:
args: [--fix=crlf]
- id: check-case-conflict
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.9.0
rev: v2.10.0
hooks:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.276" # Must match requirements-dev.txt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.280" # Must match requirements-dev.txt
hooks:
- id: ruff
args: [--fix]
Expand Down
4 changes: 2 additions & 2 deletions src/capture_method/DesktopDuplicationCaptureMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def get_frame(self, autosplit: AutoSplit):
return None, False

left_bounds, top_bounds, *_ = get_window_bounds(hwnd)
self.desktop_duplication.display = [
self.desktop_duplication.display = next(
display for display
in self.desktop_duplication.displays
if display.hmonitor == hmonitor
][0]
)
offset_x, offset_y, *_ = win32gui.GetWindowRect(hwnd)
offset_x -= self.desktop_duplication.display.position["left"]
offset_y -= self.desktop_duplication.display.position["top"]
Expand Down

0 comments on commit 2f95aad

Please sign in to comment.